Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b52758

Browse filesBrowse files
committed
FIX: add a default scale to Normalize
1 parent 440af79 commit 6b52758
Copy full SHA for 6b52758

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎lib/matplotlib/colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colors.py
+3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.