Titles, labels and legend

A readable chart has a title, axis labels with their unit, and a legend when several series are plotted. In Matplotlib, you set them with set_title, set_xlabel, set_ylabel and legend(), which uses the series' labels. They should be enough to understand the chart without surrounding text.

Example

ax.set_title('Monthly sales')
ax.set_ylabel('Euros')
ax.legend()

Related concepts

The whole glossary