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

Method draw

lib/matplotlib/offsetbox.py:1086–1100  ·  view source on GitHub ↗
(self, renderer)

Source from the content-addressed store, hash-verified

1084 self.patch.set_mutation_scale(fontsize)
1085
1086 def draw(self, renderer):
1087 # docstring inherited
1088 if not self.get_visible():
1089 return
1090
1091 # update the location and size of the legend
1092 bbox = self.get_window_extent(renderer)
1093 fontsize = renderer.points_to_pixels(self.prop.get_size_in_points())
1094 self.update_frame(bbox, fontsize)
1095 self.patch.draw(renderer)
1096
1097 px, py = self.get_offset(self.get_bbox(renderer), renderer)
1098 self.get_child().set_offset((px, py))
1099 self.get_child().draw(renderer)
1100 self.stale = False
1101
1102
1103def _get_anchored_bbox(loc, bbox, parentbbox, pad_x, pad_y):

Callers

nothing calls this directly

Calls 9

update_frameMethod · 0.95
get_offsetMethod · 0.95
get_bboxMethod · 0.95
get_childMethod · 0.95
get_visibleMethod · 0.45
get_window_extentMethod · 0.45
points_to_pixelsMethod · 0.45
drawMethod · 0.45
set_offsetMethod · 0.45

Tested by

no test coverage detected