Skip to content

Commit a6b53b0

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,11 +593,11 @@ 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")
600-
return converted_limits
600+
return converted_limit
601601

602602
def set_xlim3d(self, left=None, right=None, emit=True, auto=False, **kw):
603603
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy