How To Plot One Curve In Two Different Colors? (not Using Pandas)
I need to create a plot using matplotlib.pyplotthat shows distance between Earth and Mars over time. In addition to that some months e.g. March to August should be shown in a diffe
Solution 1:
The multicolored_line example looks like what you're going for.
Also see this article for more information about the colormap system in Matplotlib.
Post a Comment for "How To Plot One Curve In Two Different Colors? (not Using Pandas)"