Correct option is A
The default color for plots in
Matplotlib is
Blue. When no color is specified in a plot, Matplotlib uses blue for the lines or markers by default.
Important Key Points:
1.
Default Color: In most versions of Matplotlib, the default color for plots is blue.
2.
Plotting Style: The default style for a simple line plot is a solid blue line.
3.
Customizing Colors: You can change the color of plots by passing a color argument (e.g., 'r' for red, 'g' for green) or by using other formatting options like color='blue'.
4.
Consistency Across Plots: The default blue color is consistent across different plot types, such as line plots, scatter plots, and others.
Knowledge Booster:
·
Option (b):
Green is not the default color. It can be specified manually, but it is not the default in Matplotlib.
·
Option (c):
Black is not the default color, though it is commonly used for text or axes labels. However, for plot lines, the default is blue.
·
Option (d):
Red is not the default color. You would need to specify the color red in your plot settings for it to appear.