()
| 122 | |
| 123 | @image_comparison(['tight_layout7'], style='mpl20') |
| 124 | def test_tight_layout7(): |
| 125 | # tight layout with left and right titles |
| 126 | fontsize = 24 |
| 127 | fig, ax = plt.subplots() |
| 128 | ax.plot([1, 2]) |
| 129 | ax.locator_params(nbins=3) |
| 130 | ax.set_xlabel('x-label', fontsize=fontsize) |
| 131 | ax.set_ylabel('y-label', fontsize=fontsize) |
| 132 | ax.set_title('Left Title', loc='left', fontsize=fontsize) |
| 133 | ax.set_title('Right Title', loc='right', fontsize=fontsize) |
| 134 | plt.tight_layout() |
| 135 | |
| 136 | |
| 137 | @image_comparison(['tight_layout8'], style='mpl20', tol=0.005) |
nothing calls this directly
no test coverage detected
searching dependent graphs…