Default colormap in Matplotlib

Viewed 81

While working with the matplotlib, when I got to the colormap, I realized that the default colormap is jet colormap, but I heard that this choice is not very good. Can someone tell me the reason or is there a reason that this was chosen by default?

2 Answers

the most commonly used "jet" colormap  (also known as "rainbow") is a poor choice for a variety of reasons.

  1. When printed in black and white, it doesn't work.
  2. For colorblind persons, it doesn't work properly.
  3. Not linear in color space, so it’s hard to estimate numerical values from the resulting image.

And 'jet' is no more the default colormap in matplotlib. 'Viridis' is the new default colormap from Matplotlib 2.0 onwards.

Related