()
| 9940 | |
| 9941 | |
| 9942 | def test_tick_param_labelfont(): |
| 9943 | fig, ax = plt.subplots() |
| 9944 | ax.plot([1, 2, 3, 4], [1, 2, 3, 4]) |
| 9945 | ax.set_xlabel('X label in Impact font', fontname='Impact') |
| 9946 | ax.set_ylabel('Y label in xkcd script', fontname='xkcd script') |
| 9947 | ax.tick_params(color='r', labelfontfamily='monospace') |
| 9948 | plt.title('Title in sans-serif') |
| 9949 | for text in ax.get_xticklabels(): |
| 9950 | assert text.get_fontfamily()[0] == 'monospace' |
| 9951 | |
| 9952 | |
| 9953 | def test_set_secondary_axis_color(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…