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

Added 24 Feb 2024

Which of the following is not a valid Matplotlib color string?

  1. red
  2. green
  3. turquois Correct answer
  4. blue

Correct answer

C. turquois

14 views

MCQSEXAM

Explanation

"turquois" is invalid because it is misspelt — the valid named colour is turquoise. Red, green and blue are standard colour names.

Matplotlib also accepts single-letter codes ('r', 'g', 'b'), hex strings and RGB tuples.

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