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

Skip to content

Commit 8567877

Browse files
committed
Python3 handling of None > None.
1 parent 027cce1 commit 8567877

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/colors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,10 @@ def __call__(self, value, clip=None):
879879

880880
self.autoscale_None(result)
881881
vmin, vmax = self.vmin, self.vmax
882-
if vmin > vmax:
883-
raise ValueError("minvalue must be less than or equal to maxvalue")
884-
elif vmin == vmax:
882+
if vmin == vmax:
885883
result.fill(0) # Or should it be all masked? Or 0.5?
884+
elif vmin > vmax:
885+
raise ValueError("minvalue must be less than or equal to maxvalue")
886886
else:
887887
vmin = float(vmin)
888888
vmax = float(vmax)

0 commit comments

Comments
 (0)