color plt 1

color plt

matplotlib. colors
b : blue.
g : green.
r : red.
c : cyan.
m : magenta.
y : yellow.
k : black.
w : white.

Here is what the above code is Doing:
1. We’re creating a figure object called fig, and an axis object in that figure called ax.
2. We’re plotting our data on that axis, with the data points being represented as dots (‘o’).
3. We’re setting the limits of the x- and y-axes to the minimum and maximum values of our data.
4. We’re labeling the x- and y-axes.
5. We’re providing a title for the plot.
6. We’re displaying the plot.

Similar Posts