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

Skip to content

Commit dbe5a42

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 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,7 +3176,7 @@ 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. "
3179+
raise ValueError("Specified y limits must be finite; "
31803180
"instead, found: (%s, %s)" % (top, bottom))
31813181

31823182
old_bottom, old_top = self.get_ylim()

0 commit comments

Comments
 (0)