10000
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 2c4aa6d commit b9bf090Copy full SHA for b9bf090
lib/matplotlib/text.py
@@ -733,6 +733,9 @@ def draw(self, renderer):
733
734
renderer.open_group('text', self.get_gid())
735
736
+ if not np.isfinite(posx) or not np.isfinite(posy):
737
+ raise ValueError("posx and posy should be finite values")
738
+
739
with _wrap_text(self) as textobj:
740
bbox, info, descent = textobj._get_layout(renderer)
741
trans = textobj.get_transform()
@@ -760,8 +763,6 @@ def draw(self, renderer):
760
763
angle = textobj.get_rotation()
761
764
762
765
for line, wh, x, y in info:
- if not np.isfinite(x) or not np.isfinite(y):
- continue
766
767
mtext = textobj if len(info) == 1 else None
768
x = x + posx
0 commit comments