8000 FIX: add a default scale to Normalize · matplotlib/matplotlib@6b52758 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b52758

Browse files
committed
FIX: add a default scale to Normalize
1 parent 440af79 commit 6b52758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/colors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ def __init__(self, vmin=None, vmax=None, clip=False):
10961096
self.vmin = _sanitize_extrema(vmin)
10971097
self.vmax = _sanitize_extrema(vmax)
10981098
self.clip = clip
1099+
self._scale = scale.LinearScale(axis=None)
10991100

11001101
@staticmethod
11011102
def process_value(value):
@@ -1629,6 +1630,8 @@ def __init__(self, boundaries, ncolors, clip=False, *, extend='neither'):
16291630
self.Ncmap = ncolors
16301631
self.extend = extend
16311632

1633+
self._scale = None # don't use the default scale.
1634+
16321635
self._n_regions = self.N - 1 # number of colors needed
16331636
self._offset = 0
16341637
if extend in ('min', 'both'):

0 commit comments

Comments
 (0)
0