()
| 200 | @mpl.style.context('default') |
| 201 | @pytest.mark.backend('pgf') |
| 202 | def test_bbox_inches(): |
| 203 | mpl.rcParams.update({'font.family': 'serif', 'pgf.rcfonts': False}) |
| 204 | fig, (ax1, ax2) = plt.subplots(1, 2) |
| 205 | ax1.plot(range(5)) |
| 206 | ax2.plot(range(5)) |
| 207 | plt.tight_layout() |
| 208 | bbox = ax1.get_window_extent().transformed(fig.dpi_scale_trans.inverted()) |
| 209 | compare_figure('pgf_bbox_inches.pdf', savefig_kwargs={'bbox_inches': bbox}, |
| 210 | tol=0) |
| 211 | |
| 212 | |
| 213 | @mpl.style.context('default') |
nothing calls this directly
no test coverage detected
searching dependent graphs…