How to change the plot line color from blue to black
https://stackoverflow.com/questions/41709257/how-to-change-the-plot-line-color-from-blue-to-black
WebJan 18, 2017 · The usual way to set the line color in matplotlib is to specify it in the plot command. This can either be done by a string after the data, e.g. "r-" for a red line, or by explicitely stating the color argument. import matplotlib.pyplot as plt. plt.plot([1,2,3], [2,3,1], "r-") # red line. plt.plot([1,2,3], [5,5,3], color="blue") # blue line.
DA: 90 PA: 32 MOZ Rank: 68