
python - How to view all colormaps available in matplotlib? - Stack ...
Dec 16, 2015 · I was wondering if there is a function call that can give me the name of all colormaps available in matplotlib? It used to be possible by something along the lines of (see here): import …
python - Colormap with maximum distinguishable colours - Stack …
Mar 9, 2017 · Recently, I also encountered the same problem. So I created the following simple Python code to generate visually distinguishable colors for jupyter notebook matplotlib. It is not quite …
python - Create own colormap using matplotlib and plot color scale ...
I have the following problem, I want to create my own colormap (red-mix-violet-mix-blue) that maps to values between -2 and +2 and want to use it to color points in my plot. The plot should then ha...
Scatter plot and Color mapping in Python - Stack Overflow
Scatter plot and Color mapping in Python Asked 12 years, 6 months ago Modified 1 year, 7 months ago Viewed 390k times
python - Matplotlib Plot Lines with Colors Through Colormap - Stack ...
The Matplotlib colormaps accept an argument (0..1, scalar or array) which you use to get colors from a colormap. For example:
python - Using Colormaps to set color of line in matplotlib - Stack ...
How does one set the color of a line in matplotlib with scalar values provided at run time using a colormap (say jet)? I tried a couple of different approaches here and I think I'm stumped. values[...
python - Combining two matplotlib colormaps - Stack Overflow
Jun 25, 2015 · Combining two matplotlib colormaps Asked 10 years, 6 months ago Modified 1 year, 8 months ago Viewed 26k times
python - More perceptually uniform colormaps? - Stack Overflow
Apr 28, 2020 · I am an advocate of using perceptually uniform colormaps when plotting scientific data as grayscale images and applying false colorings. I don't know who invented these, but these colormaps …
How to make a color map with many unique colors in seaborn
Jul 1, 2021 · The colorcet package includes the Glasbey colormaps, which have a large number of distinct hues with some variation in lightness/saturation and no particular ordering. You can use …
python - Creating a Colormap Legend in Matplotlib - Stack Overflow
import numpy as np import matplotlib.pyplot as plt mat = '''SOME MATRIX''' plt.imshow(mat, origin="lower", cmap='gray', interpolation='nearest') plt.show() How do I add a legend showing the …