()
| 1173 | |
| 1174 | @image_comparison(['ytick_rotation_mode.png'], remove_text=False, style='mpl20') |
| 1175 | def test_ytick_rotation_mode(): |
| 1176 | fig, ax = plt.subplots(figsize=(1, 12)) |
| 1177 | ax.set_xticks([]) |
| 1178 | ax2 = ax.twinx() |
| 1179 | |
| 1180 | ax.set_yticks(range(37), ['foo'] * 37, rotation_mode="ytick") |
| 1181 | ax2.set_yticks(range(37), ['foo'] * 37, rotation_mode='ytick') |
| 1182 | |
| 1183 | angles = np.linspace(0, 360, 37) |
| 1184 | for tick, angle in zip(ax.get_yticklabels(), angles): |
| 1185 | tick.set_rotation(angle) |
| 1186 | for tick, angle in zip(ax2.get_yticklabels(), angles): |
| 1187 | tick.set_rotation(angle) |
| 1188 | |
| 1189 | plt.subplots_adjust(left=0.4, right=0.6, top=.99, bottom=.01) |
| 1190 | |
| 1191 | |
| 1192 | def test_text_tightbbox_outside_scale_domain(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…