mpl_toolkits.axisartist.axis_artist.TickLabels¶
-
class
mpl_toolkits.axisartist.axis_artist.
TickLabels
(*, axis_direction='bottom', **kwargs)[源代码]¶ 基类:
mpl_toolkits.axisartist.axis_artist.AxisLabel
滴答标签。当从文本派生时,这个艺术家绘制所有的滴答标签。和在AxisLabel中一样,文本的位置会即时更新,因此更改文本位置没有任何效果。否则,可以将属性更改为普通文本。与主线Matplotlib的TickLabels不同,单TickLabel的属性不能修改。
要在刻度和刻度标签之间更改填充,请使用“设置填充”。
[Deprecated]
笔记
3.2 版后已移除:
-
__module__
= 'mpl_toolkits.axisartist.axis_artist'¶
-
draw
(renderer)[源代码]¶ 使用给定的渲染器绘制艺术家(及其子对象)。
如果艺术家不可见,则此操作无效 (
Artist.get_visible
返回False)。参数: - 渲染器 :
RendererBase
子类。RenderBase子类。
笔记
此方法在Artist子类中被重写。
- 渲染器 :
-