We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367026f commit c2ae3d6Copy full SHA for c2ae3d6
lib/matplotlib/tests/test_text.py
@@ -731,3 +731,13 @@ def test_unsupported_script(recwarn):
731
[warn.message.args for warn in recwarn] ==
732
[(r"Glyph 2534 (\N{BENGALI DIGIT ZERO}) missing from current font.",),
733
(r"Matplotlib currently does not support Bengali natively.",)])
734
+
735
736
+def test_parse_math():
737
+ fig, ax = plt.subplots()
738
+ ax.text(0, 0, r"$ \wrong{math} $", parse_math=False)
739
+ fig.canvas.draw()
740
741
+ with pytest.raises(ValueError, match='Unknown symbol'):
742
+ ax.text(0, 0, r"$ \wrong{math} $", parse_math=True)
743
0 commit comments