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

Function test_zoom_inset_transform

lib/matplotlib/tests/test_inset.py:112–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110@image_comparison(['zoom_inset_transform.png'], remove_text=True, style='mpl20',
111 tol=0.01)
112def test_zoom_inset_transform():
113 fig, ax = plt.subplots()
114
115 ax_ins = ax.inset_axes([0.2, 0.2, 0.3, 0.15])
116 ax_ins.set_ylim([0.3, 0.6])
117 ax_ins.set_xlim([0.5, 0.9])
118
119 tr = mtransforms.Affine2D().rotate_deg(30)
120 indicator = ax.indicate_inset_zoom(ax_ins, transform=tr + ax.transData)
121 for conn in indicator.connectors:
122 conn.set_visible(True)
123
124
125def test_zoom_inset_external_transform():

Callers

nothing calls this directly

Calls 7

inset_axesMethod · 0.80
rotate_degMethod · 0.80
indicate_inset_zoomMethod · 0.80
subplotsMethod · 0.45
set_ylimMethod · 0.45
set_xlimMethod · 0.45
set_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…