Skip to content

Commit 1d33483

Browse files
committed
Backport #920 to the v1.1.x branch
1 parent 04e87dd commit 1d33483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _generate_cmap(name, lutsize):
6363
if 'red' in spec:
6464
return colors.LinearSegmentedColormap(name, spec, lutsize)
6565
else:
66-
return colors.LinearSegmentedColormap.from_list(spec, spec, lutsize)
66+
return colors.LinearSegmentedColormap.from_list(name, spec, lutsize)
6767

6868
LUTSIZE = mpl.rcParams['image.lut']
6969

0 commit comments

Comments
 (0)