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 61792ca commit 9e9b8d5Copy full SHA for 9e9b8d5
lib/matplotlib/text.py
@@ -1240,7 +1240,9 @@ def _preprocess_math(self, s):
1240
if s == " ":
1241
s = r"\ "
1242
return s, "TeX"
1243
- elif self.get_parse_math() and cbook.is_math_text(s):
+ elif not self.get_parse_math():
1244
+ return s, False
1245
+ elif cbook.is_math_text(s):
1246
return s, True
1247
else:
1248
return s.replace(r"\$", "$"), False
0 commit comments