Invert (not vice versa) color map in matplotlib?

Are there any good ways to invert (not the opposite, which is trivial, see Invert colormap in matplotlib ) the colormap in matplotlib?

ie, I want to take a png image with shape color tuples (1,1,0,1)

and use colplap for matplotlib to get the number of integers or floats.

I think I can hack something to do this, but I can't be the first to want this functionality - does it exist somewhere I couldn't find, or is it built into matplotlib?

+3
matplotlib


source to share


No one has answered this question yet

See similar questions:

3
How to decode color mapping in matplotlib Colormap?
2
Moving from RGB to scalars in matplotlib colormap

or similar:

1667
How can I resize drawings drawn with matplotlib?
1015
Save the image to an image file instead of displaying it with Matplotlib
752
How to make matplotlib laptop IP address
121
Invert colormap in matplotlib
81
How to convert Numpy array to PIL image using matplotlib colormap
nine
how to reverse a color map image to scalar values
4
How do I match integers to colors in matplotlib?
3
nonlinear color map, matplotlib
2
Moving from RGB to scalars in matplotlib colormap
1
Permanent color map in matplotlib.



All Articles
Loading...
X
Show
Funny
Dev
Pics