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

Method draw

site-packages/matplotlib/offsetbox.py:515–535  ·  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

513 [(0, 0)]
514
515 def draw(self, renderer):
516 """
517 Update the location of children if necessary and draw them
518 to the given *renderer*.
519 """
520
521 width, height, xdescent, ydescent, offsets = self.get_extent_offsets(
522 renderer)
523
524 px, py = self.get_offset(width, height, xdescent, ydescent, renderer)
525
526 for c, (ox, oy) in zip(self.get_visible_children(), offsets):
527 c.set_offset((px + ox, py + oy))
528
529 self.draw_frame(renderer)
530
531 for c in self.get_visible_children():
532 c.draw(renderer)
533
534 #bbox_artist(self, renderer, fill=False, props=dict(pad=0.))
535 self.stale = False
536
537 def update_frame(self, bbox, fontsize=None):
538 self.patch.set_bounds(bbox.x0, bbox.y0,

Callers

nothing calls this directly

Calls 6

get_extent_offsetsMethod · 0.95
draw_frameMethod · 0.95
get_visible_childrenMethod · 0.80
get_offsetMethod · 0.45
set_offsetMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected