Primary
Axes.set_xlabel() ⚬|Documentation|1st|20251021 205824-00-⌔
matplotlib.axes.Axes.set_xlabel — Matplotlib 3.10.8 documentation#matplotlib.axes.Axes.set_xlabel
Axes.set_xlabel(xlabel, fontdict=None, labelpad=None, ﹡, loc=None, ﹡﹡kwargs)Set the label for the x-axis.
Parameters:
xlabel: strThe label text.
labelpad: float, default:rcParams["axes.labelpad"](default:4.0)Spacing in points from the Axes bounding box including ticks and tick labels. If None, the previous value is left as is.
loc: {‘left’, ‘center’, ‘right’}, default:rcParams["xaxis.labellocation"](default:'center')The label position. This is a high-level alternative for passing parameters x and horizontalalignment.
Other Parameters:
﹡﹡kwargs:Textproperties
Textproperties control the appearance of the label.See also:
textDocuments the properties supported by
Text.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •