8000 fix cmr10 test · matplotlib/matplotlib@0503854 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0503854

Browse files
committed
fix cmr10 test
1 parent 6f362d6 commit 0503854

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,5 +388,6 @@ def test_math_fontfamily():
388388

389389

390390
def test_mathtext_fontfamily():
391-
fig = plt.figure(figsize=(10, 3))
392-
fig.text(.5, .5, '$a-b$', fontsize=40, ha='center', math_fontfamily='cmr10')
391+
mpl.rcParams['font.family'] = 'cmr10'
392+
fig, ax = plt.subplots()
393+
ax.plot(range(-1, 1), range(-1, 1))

0 commit comments

Comments
 (0)
0