Figures and Axes: How matplotlib Draws

matplotlib draws every chart on a Figure, the sheet of paper that gets saved, inside an Axes, the one chart on that sheet, so a chart starts with fig, ax = plt.subplots(), draws with ax.plot, is labeled with set_title, set_xlabel and set_ylabel, and is saved with fig.savefig.

By

Updated

Cheat sheet: Figures and Axes: How matplotlib Draws
Category
Data Analysis
Level
Apprentice
Tags
<figure>, Axes, matplotlib, python, savefig()