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 c35268f commit 6b820a8Copy full SHA for 6b820a8
1 file changed
lib/matplotlib/scale.py
@@ -30,11 +30,11 @@
30
""" # noqa: E501
31
32
import inspect
33
+import math
34
import textwrap
35
from functools import wraps
36
37
import numpy as np
-import math
38
39
import matplotlib as mpl
40
from matplotlib import _api, _docstring
@@ -429,7 +429,7 @@ def val_in_range(self, val):
429
"""
430
Return whether the value is within the valid range for this scale.
431
432
- This is True for value(s) > 0 except +inf.
+ This is True for value(s) > 0 except +inf and NaN.
433
434
return math.isfinite(val) and val > 0
435
@@ -875,7 +875,7 @@ def val_in_range(self, val):
875
876
This is True for value(s) which are between 0 and 1 (excluded).
877
878
- return (val > 0) and (val < 1)
+ return 0 < val < 1
879
880
881
_scale_mapping = {
0 commit comments