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

Skip to content

Commit b54d8b8

Browse files
committed
FIX: set default scale to None
1 parent 52a6aa8 commit b54d8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ def __init__(self, vmin=None, vmax=None, clip=False):
11521152
self.vmin = _sanitize_extrema(vmin)
11531153
self.vmax = _sanitize_extrema(vmax)
11541154
self.clip = clip
1155-
self._scale = scale.LinearScale(axis=None)
1155+
self._scale = None # will default to LinearScale for colorbar
11561156

11571157
@staticmethod
11581158
def process_value(value):

0 commit comments

Comments
 (0)