mpl_toolkits.axisartist.axislines.AxisArtistHelper¶
-
class
mpl_toolkits.axisartist.axislines.
AxisArtistHelper
[源代码]¶ 基类:
object
AxisArtisThelper应该使用给定的API定义以下方法。注意,第一个轴参数将是调用方艺术家的轴属性。::
# LINE (spinal line?) def get_line(self, axes): # path : Path return path def get_line_transform(self, axes): # ... # trans : transform return trans # LABEL def get_label_pos(self, axes): # x, y : position return (x, y), trans def get_label_offset_transform(self, axes, pad_points, fontprops, renderer, bboxes, ): # va : vertical alignment # ha : horizontal alignment # a : angle return trans, va, ha, a # TICK def get_tick_transform(self, axes): return trans def get_tick_iterators(self, axes): # iter : iterable object that yields (c, angle, l) where # c, angle, l is position, tick angle, and label return iter_major, iter_minor
-
class
Fixed
(loc, nth_coord=None)[源代码]¶ 基类:
mpl_toolkits.axisartist.axislines.AxisArtistHelper._Base
固定(在轴坐标中)轴的帮助器类。
nth_coord=坐标值随二维变化,nth_coord=0->x轴,nth_coord=1->y轴
-
__module__
= 'mpl_toolkits.axisartist.axislines'¶
-
-
class
Floating
(nth_coord, value)[源代码]¶ 基类:
mpl_toolkits.axisartist.axislines.AxisArtistHelper._Base
-
__module__
= 'mpl_toolkits.axisartist.axislines'¶
-
-
__dict__
= mappingproxy({'__module__': 'mpl_toolkits.axisartist.axislines', '__doc__': '\n AxisArtistHelper should define\n following method with given APIs. Note that the first axes argument\n will be axes attribute of the caller artist.::\n\n\n # LINE (spinal line?)\n\n def get_line(self, axes):\n # path : Path\n return path\n\n def get_line_transform(self, axes):\n # ...\n # trans : transform\n return trans\n\n # LABEL\n\n def get_label_pos(self, axes):\n # x, y : position\n return (x, y), trans\n\n\n def get_label_offset_transform(self,\n axes,\n pad_points, fontprops, renderer,\n bboxes,\n ):\n # va : vertical alignment\n # ha : horizontal alignment\n # a : angle\n return trans, va, ha, a\n\n # TICK\n\n def get_tick_transform(self, axes):\n return trans\n\n def get_tick_iterators(self, axes):\n # iter : iterable object that yields (c, angle, l) where\n # c, angle, l is position, tick angle, and label\n\n return iter_major, iter_minor\n ', '_Base': <class 'mpl_toolkits.axisartist.axislines.AxisArtistHelper._Base'>, 'Fixed': <class 'mpl_toolkits.axisartist.axislines.AxisArtistHelper.Fixed'>, 'Floating': <class 'mpl_toolkits.axisartist.axislines.AxisArtistHelper.Floating'>, '__dict__': <attribute '__dict__' of 'AxisArtistHelper' objects>, '__weakref__': <attribute '__weakref__' of 'AxisArtistHelper' objects>, '__annotations__': {}})¶
-
__module__
= 'mpl_toolkits.axisartist.axislines'¶
-
__weakref__
¶ 对象的弱引用列表(如果已定义)
-
class