matplotlib: missing "plt.get_cmap" and "colors.rgb2hex" #1037
Labels
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
typestub
Issue relating to our bundled type stubs
Environment data
Expected behaviour
The functions
matplotlib.pyplot.get_cmap
andmatplotlib.colors.rgb2hex
should be recognized.Actual behaviour
I get red squiggles.
Code Snippet / Additional information
Upon googling, it seems like
colors.rgb2hex
was renamed toto_hex
between matplotlib 1.5.0 and 2.0.0, and it seems likecm.get_cmap
is more canonical (per https://matplotlib.org/stable/tutorials/colors/colormaps.html). But FWIW, these old/alternative names still work.The text was updated successfully, but these errors were encountered: