Skip to content

Commit f5aa5fd

Browse files
committed
fix mistake in calling from_list
1 parent 946f58b commit f5aa5fd

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
@@ -64,7 +64,7 @@ def _generate_cmap(name, lutsize):
6464
if 'red' in spec:
6565
return colors.LinearSegmentedColormap(name, spec, lutsize)
6666
else:
67-
return colors.LinearSegmentedColormap.from_list(spec, spec, lutsize)
67+
return colors.LinearSegmentedColormap.from_list(name, spec, lutsize)
6868

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

0 commit comments

Comments
 (0)