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 c8077e1 commit 9d4073aCopy full SHA for 9d4073a
1 file changed
lib/matplotlib/text.py
@@ -657,10 +657,13 @@ def _get_wrapped_text(self):
657
if current_width > line_width:
658
wrapped_str += ' '.join(sub_words[:i - 1]) + '\n'
659
sub_words = sub_words[i - 1:]
660
+ break
661
+
662
# Otherwise if all words fit in the width, append them all
663
elif i == len(sub_words):
664
wrapped_str += ' '.join(sub_words[:i])
665
sub_words = []
666
667
668
return wrapped_str
669
0 commit comments