mpl_toolkits.axisartist.axislines.AxisArtistHelper #
- 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