matplotlib.artist.Artist.convert_xunits#

Artist.convert_xunits(x)[source]#

使用 x 轴的单位类型转换 *x*。

如果 artist 未包含在 Axes 中,或者 x 轴没有单位,则返回 *x* 本身。