()
| 7900 | |
| 7901 | |
| 7902 | def test_titlesetpos(): |
| 7903 | # Test that title stays put if we set it manually |
| 7904 | fig, ax = plt.subplots() |
| 7905 | fig.subplots_adjust(top=0.8) |
| 7906 | ax2 = ax.twiny() |
| 7907 | ax.set_xlabel('Xlabel') |
| 7908 | ax2.set_xlabel('Xlabel2') |
| 7909 | ax.set_title('Title') |
| 7910 | pos = (0.5, 1.11) |
| 7911 | ax.title.set_position(pos) |
| 7912 | renderer = fig.canvas.get_renderer() |
| 7913 | ax._update_title_position(renderer) |
| 7914 | assert ax.title.get_position() == pos |
| 7915 | |
| 7916 | |
| 7917 | def test_title_xticks_top(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…