Skip to content

Commit 6f362d6

Browse files
committed
add test
1 parent 71ea0cd commit 6f362d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,8 @@ def test_math_fontfamily():
385385
size=24, math_fontfamily='dejavusans')
386386
fig.text(0.2, 0.3, r"$This\ text\ should\ have\ another$",
387387
size=24, math_fontfamily='stix')
388+
389+
390+
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')

0 commit comments

Comments
 (0)