MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_draw_artists

Method _get_draw_artists

lib/matplotlib/figure.py:156–173  ·  view source on GitHub ↗

Also runs apply_aspect

(self, renderer)

Source from the content-addressed store, hash-verified

154 self.set(**kwargs)
155
156 def _get_draw_artists(self, renderer):
157 """Also runs apply_aspect"""
158 artists = self.get_children()
159
160 artists.remove(self.patch)
161 artists = sorted(
162 (artist for artist in artists if not artist.get_animated()),
163 key=lambda artist: artist.get_zorder())
164 for ax in self._localaxes:
165 locator = ax.get_axes_locator()
166 ax.apply_aspect(locator(ax, renderer) if locator else None)
167
168 for child in ax.get_children():
169 if hasattr(child, 'apply_aspect'):
170 locator = child.get_axes_locator()
171 child.apply_aspect(
172 locator(child, renderer) if locator else None)
173 return artists
174
175 def autofmt_xdate(
176 self, bottom=0.2, rotation=30, ha='right', which='major'):

Callers 2

drawMethod · 0.80
drawMethod · 0.80

Calls 6

get_childrenMethod · 0.95
get_animatedMethod · 0.80
get_zorderMethod · 0.80
removeMethod · 0.45
get_axes_locatorMethod · 0.45
apply_aspectMethod · 0.45

Tested by

no test coverage detected