Home → Data → Matplotlib
Reading
0%

1 · Anatomy of a Figure

📖
Textbook Definition

"A Matplotlib Figure is the whole window in the user interface. Within the figure can be one or more Axes (an actual plot with x and y axes, title, etc.)." — Matplotlib Docs

2 · Return Value: plt.subplots()

🔁 Return Value

The plt.subplots() function returns a Tuple: (fig, ax). fig is the Figure object, and ax is either a single Axes object or a NumPy array of Axes objects (if multiple rows/cols are requested).

📚 See Also