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

Function draw_box

lib/matplotlib/tests/test_text.py:153–160  ·  view source on GitHub ↗
(ax, tt)

Source from the content-addressed store, hash-verified

151 renderer = fig.canvas.get_renderer()
152
153 def draw_box(ax, tt):
154 r = mpatches.Rectangle((0, 0), 1, 1, clip_on=False,
155 transform=ax.transAxes)
156 r.set_bounds(
157 tt.get_window_extent(renderer)
158 .transformed(ax.transAxes.inverted())
159 .bounds)
160 ax.add_patch(r)
161
162 horal = 'left'
163 for nn, st in enumerate(sts):

Callers 1

test_multiline2Function · 0.85

Calls 5

set_boundsMethod · 0.95
add_patchMethod · 0.80
transformedMethod · 0.45
get_window_extentMethod · 0.45
invertedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…