Skip to content

Commit d1b112c

Browse files
committed
fixed bug in CenteredNorm, issue matplotlib#19972
1 parent 5799a5c commit d1b112c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,8 @@ def __init__(self, vcenter=0, halfrange=None, clip=False):
13591359
array([0.25, 0.5 , 1. ])
13601360
"""
13611361
self._vcenter = vcenter
1362+
self.vmin = None
1363+
self.vmax = None
13621364
# calling the halfrange setter to set vmin and vmax
13631365
self.halfrange = halfrange
13641366
self.clip = clip

0 commit comments

Comments
 (0)