the default Colormap of matplotlib is viridis,
a = np.arange(6).reshape(2,3)
aimg = plt.imshow(a)
renders an image (figure_1)
aimg.cmap.name
outputs
'viridis'
which is not a normal English.
according to this post,
The Latin word for “green” is viridis
but figure_1 looks like more colorful than green.
what does the term viridis in matplotlib come from?
The source code says:
Matplotlib ships with 4 perceptually uniform color maps which are
the recommended color maps for sequential data:
========= ===================================================
Colormap Description
========= ===================================================
inferno perceptually uniform shades of black-red-yellow
magma perceptually uniform shades of black-red-white
plasma perceptually uniform shades of blue-red-yellow
viridis perceptually uniform shades of blue-green-yellow
========= ===================================================
I also found this:
For an introduction to color theory and how 'viridis' was generated watch Nathaniel Smith and Stéfan van der Walt's talk from SciPy2015
Here's that talk
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments