Test tight_layout for subplot2grid.
()
| 57 | |
| 58 | @image_comparison(['tight_layout4'], style='mpl20') |
| 59 | def test_tight_layout4(): |
| 60 | """Test tight_layout for subplot2grid.""" |
| 61 | ax1 = plt.subplot2grid((3, 3), (0, 0)) |
| 62 | ax2 = plt.subplot2grid((3, 3), (0, 1), colspan=2) |
| 63 | ax3 = plt.subplot2grid((3, 3), (1, 0), colspan=2, rowspan=2) |
| 64 | ax4 = plt.subplot2grid((3, 3), (1, 2), rowspan=2) |
| 65 | example_plot(ax1) |
| 66 | example_plot(ax2) |
| 67 | example_plot(ax3) |
| 68 | example_plot(ax4) |
| 69 | plt.tight_layout() |
| 70 | |
| 71 | |
| 72 | @image_comparison(['tight_layout5'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…