Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14e543f

Browse files
committed
Cleaned up invalid axis limit warning text
1 parent d633b8a commit 14e543f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,7 +2877,7 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False, **kw):
28772877

28782878
if ((left is not None and not np.isfinite(left)) or
28792879
(right is not None and not np.isfinite(right))):
2880-
raise ValueError("xlim limits must be finite. "
2880+
raise ValueError("Specified x limits must be finite; "
28812881
"instead, found: (%s, %s)" % (left, right))
28822882

28832883
old_left, old_right = self.get_xlim()
@@ -3176,8 +3176,8 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False, **kw):
31763176

31773177
if ((top is not None and not np.isfinite(top)) or
31783178
(bottom is not None and not np.isfinite(bottom))):
3179-
raise ValueError("ylim limits must be finite. "
3180-
"instead, found: (%s, %s)" % (top, bottom))
3179+
raise ValueError("Specified y limits must be finite; "
3180+
"instead, found: (%s, %s)" % (bottom, top))
31813181

31823182
old_bottom, old_top = self.get_ylim()
31833183

0 commit comments

Comments
 (0)