Test tight_layout for multiple subplots.
()
| 34 | |
| 35 | @image_comparison(['tight_layout2'], style='mpl20') |
| 36 | def test_tight_layout2(): |
| 37 | """Test tight_layout for multiple subplots.""" |
| 38 | fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(nrows=2, ncols=2) |
| 39 | example_plot(ax1) |
| 40 | example_plot(ax2) |
| 41 | example_plot(ax3) |
| 42 | example_plot(ax4) |
| 43 | plt.tight_layout() |
| 44 | |
| 45 | |
| 46 | @image_comparison(['tight_layout3'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…