1. Home
  2. Data Science
  3. Matplotlib
  4. Which of the following is not a valid Matplotlib colormap?

Added 24 Feb 2024

Which of the following is not a valid Matplotlib colormap?

  1. viridis
  2. rainbow
  3. hotpink Correct answer
  4. inferno

Correct answer

C. hotpink

18 views

MCQSEXAM

Explanation

"hotpink" is not a colormap — it is a named colour. viridis (the default), rainbow and inferno are genuine colormaps.

A colour is a single shade; a colormap is a continuous range of colours used to represent values.

Want more practice? Try the full set of Data Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Matplotlib MCQs

Practise all Matplotlib MCQs

Similar MCQs