Thanks to visit codestin.com Credit goes to github.com
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 d7a06da commit c9a9fe2Copy full SHA for c9a9fe2
lib/matplotlib/text.py
@@ -551,6 +551,9 @@ def draw(self, renderer):
551
552
if rcParams['text.usetex']:
553
for line, wh, x, y in info:
554
+ if not np.isfinite(x) or not np.isfinite(y):
555
+ continue
556
+
557
x = x + posx
558
y = y + posy
559
if renderer.flipy():
@@ -566,6 +569,9 @@ def draw(self, renderer):
566
569
self._fontproperties, angle)
567
570
else:
568
571
572
573
574
575
576
577
@@ -974,6 +980,8 @@ def is_math_text(s):
974
980
# Did we find an even number of non-escaped dollar signs?
975
981
# If so, treat is as math text.
976
982
983
+ if s == ' ':
984
+ s = r'\ '
977
985
return s, 'TeX'
978
986
979
987
if cbook.is_math_text(s):
0 commit comments