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

Skip to content

Commit ab76bbc

Browse files
author
Vedant Nanda
committed
check placed on converted_limit
1 parent e480331 commit ab76bbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ def _validate_axis_limits(self, limit, convert):
593593
594594
"""
595595
if limit is not None:
596-
converted_limits = convert(limit)
597-
if (isinstance(limit, float) and
598-
(not np.isreal(limit) or not np.isfinite(limit))):
596+
converted_limit = convert(limit)
597+
if (isinstance(converted_limit, float) and
598+
(not np.isreal(converted_limit) or not np.isfinite(converted_limit))):
599599
raise ValueError("Axis limits cannot be NaN or Inf")
600600
return converted_limits
601601

0 commit comments

Comments
 (0)