| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7118,6 +7118,18 @@ def test_title_no_move_off_page(): | |||
| 7118 | 7118 | assert tt.get_position()[1] == 1.0 | |
| 7119 | 7119 | ||
| 7120 | 7120 | ||
| 7121 | + def test_title_inset_ax(): | ||
| 7122 | + # Title should be above any child axes | ||
| 7123 | + mpl.rcParams['axes.titley'] = None | ||
| 7124 | + fig, ax = plt.subplots() | ||
| 7125 | + ax.set_title('Title') | ||
| 7126 | + fig.draw_without_rendering() | ||
| 7127 | + assert ax.title.get_position()[1] == 1 | ||
| 7128 | + ax.inset_axes([0, 1, 1, 0.1]) | ||
| 7129 | + fig.draw_without_rendering() | ||
| 7130 | + assert ax.title.get_position()[1] == 1.1 | ||
| 7131 | + | ||
| 7132 | + | ||
| 7121 | 7133 | def test_offset_label_color(): | |
| 7122 | 7134 | # Tests issue 6440 | |
| 7123 | 7135 | fig, ax = plt.subplots() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments