matplotlib.pyplot.xlabel¶
-
matplotlib.pyplot.
xlabel
(xlabel, fontdict=None, labelpad=None, *, loc=None, **kwargs)[源代码]¶ 设置X轴的标签。
参数: - xlabelSTR
标签文本。
- labelpad浮点,默认值:无
距轴边界框的点间距,包括记号和记号标签。
- loc : {{'left', 'center', 'right'}}, default:
rcParams["xaxis.labellocation"]
(default:'center'
){'left','center','right'},默认值: 标签位置。这是传递参数的高级替代方法 x 和 水平信号 .
其他参数: