Axes
noun
say it: “AK-seez” /ˈæksiz/
In matplotlib, one chart inside a figure: the area where the data is drawn, with its title and its labeled horizontal and vertical axes.
What is an Axes in matplotlib?
In matplotlib, an Axes is one chart on a Figure: the area with the data, its two axes, its title and its labels.
You draw on it with methods such as ax.bar() and ax.set_title().
import matplotlib.pyplot as plt
fig, ax = plt.subplots() # ax is the Axes
ax.bar(["Main", "Elm"], [620, 410])
ax.set_title("Cups by store")
ax.set_ylabel("Cups")
In a sentence
- “One Figure can hold several Axes, one chart each.”
- “She gave the Axes a title and labeled its side Cups.”
Level: Journeyman · More Python terms at this level
Updated