Lines

ax.plot() draws a line connecting (x, y) points, suited to the evolution of a value along an ordered sequence such as time. The style is set with color, linestyle, linewidth and marker, and each line gets a label for the legend.

Example

ax.plot(dates, ventes, color='#1f77b4', marker='o', label='Sales')

Related concepts

The whole glossary