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