| 121 | artists to the figure or subfigure, create Axes, etc. |
| 122 | """ |
| 123 | def __init__(self, **kwargs): |
| 124 | super().__init__() |
| 125 | # remove the non-figure artist _axes property |
| 126 | # as it makes no sense for a figure to be _in_ an Axes |
| 127 | # this is used by the property methods in the artist base class |
| 128 | # which are over-ridden in this class |
| 129 | del self._axes |
| 130 | |
| 131 | self._suptitle = None |
| 132 | self._supxlabel = None |
| 133 | self._supylabel = None |
| 134 | |
| 135 | # groupers to keep track of x, y labels and title we want to align. |
| 136 | # see self.align_xlabels, self.align_ylabels, |
| 137 | # self.align_titles, and axis._get_tick_boxes_siblings |
| 138 | self._align_label_groups = { |
| 139 | "x": cbook.Grouper(), |
| 140 | "y": cbook.Grouper(), |
| 141 | "title": cbook.Grouper() |
| 142 | } |
| 143 | |
| 144 | self._localaxes = [] # track all Axes |
| 145 | self.artists = [] |
| 146 | self.lines = [] |
| 147 | self.patches = [] |
| 148 | self.texts = [] |
| 149 | self.images = [] |
| 150 | self.legends = [] |
| 151 | self.subfigs = [] |
| 152 | self.stale = True |
| 153 | self.suppressComposite = None |
| 154 | self.set(**kwargs) |
| 155 | |
| 156 | def _get_draw_artists(self, renderer): |
| 157 | """Also runs apply_aspect""" |