What is the default color for Matplotlib plots?

2023

What is the default color for Matplotlib plots?

  1. A.

    Blue

  2. B.

    Green

  3. C.

    Black

  4. D.

    Red

Attempted by 1781 students.

Show answer & explanation

Correct answer: A

Answer: Blue (नीला) — Matplotlib uses blue as the default color for line plots and it is the first color in the default color cycle. Default color details: the specific color is referred to as 'tab:blue' and its hex code is #1f77b4.

Explore the full course: Bpsc