We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 946f58b commit f5aa5fdCopy full SHA for f5aa5fd
lib/matplotlib/cm.py
@@ -64,7 +64,7 @@ def _generate_cmap(name, lutsize):
64
if 'red' in spec:
65
return colors.LinearSegmentedColormap(name, spec, lutsize)
66
else:
67
- return colors.LinearSegmentedColormap.from_list(spec, spec, lutsize)
+ return colors.LinearSegmentedColormap.from_list(name, spec, lutsize)
68
69
LUTSIZE = mpl.rcParams['image.lut']
70
0 commit comments