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