MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / draw

Method draw

site-packages/matplotlib/offsetbox.py:254–270  ·  view source on GitHub ↗

Update the location of children if necessary and draw them to the given *renderer*.

(self, renderer)

Source from the content-addressed store, hash-verified

252 return mtransforms.Bbox.from_bounds(px - xd, py - yd, w, h)
253
254 def draw(self, renderer):
255 """
256 Update the location of children if necessary and draw them
257 to the given *renderer*.
258 """
259
260 width, height, xdescent, ydescent, offsets = self.get_extent_offsets(
261 renderer)
262
263 px, py = self.get_offset(width, height, xdescent, ydescent, renderer)
264
265 for c, (ox, oy) in zip(self.get_visible_children(), offsets):
266 c.set_offset((px + ox, py + oy))
267 c.draw(renderer)
268
269 bbox_artist(self, renderer, fill=False, props=dict(pad=0.))
270 self.stale = False
271
272
273class PackerBase(OffsetBox):

Callers

nothing calls this directly

Calls 6

get_extent_offsetsMethod · 0.95
get_offsetMethod · 0.95
get_visible_childrenMethod · 0.95
bbox_artistFunction · 0.70
set_offsetMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected