()
| 491 | |
| 492 | |
| 493 | def test_default_math_fontfamily(): |
| 494 | mpl.rcParams['mathtext.fontset'] = 'cm' |
| 495 | test_str = r'abc$abc\alpha$' |
| 496 | fig, ax = plt.subplots() |
| 497 | |
| 498 | text1 = fig.text(0.1, 0.1, test_str, font='Arial') |
| 499 | prop1 = text1.get_fontproperties() |
| 500 | assert prop1.get_math_fontfamily() == 'cm' |
| 501 | text2 = fig.text(0.2, 0.2, test_str, fontproperties='Arial') |
| 502 | prop2 = text2.get_fontproperties() |
| 503 | assert prop2.get_math_fontfamily() == 'cm' |
| 504 | |
| 505 | fig.draw_without_rendering() |
| 506 | |
| 507 | |
| 508 | def test_argument_order(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…