()
| 110 | @image_comparison(['zoom_inset_transform.png'], remove_text=True, style='mpl20', |
| 111 | tol=0.01) |
| 112 | def 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 | |
| 125 | def test_zoom_inset_external_transform(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…