Primary
pyplot.xlabel() ⚬|Documentation|1st|20251021004031-00-⌔
matplotlib.pyplot.xlabel — Matplotlib 3.10.8 documentation#matplotlib.pyplot.xlabel
matplotlib.pyplot.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.Notes:
Note: This is the pyplot wrapper for
axes.Axes.set_xlabel.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •