We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac36171 commit f3e0bfbCopy full SHA for f3e0bfb
lib/matplotlib/_cm_listed.py
@@ -1038,5 +1038,4 @@
1038
cmaps[name] = ListedColormap(data, name=name)
1039
# generate reversed colormap
1040
name = name + '_r'
1041
- data = [rgb for rgb in reversed(data)]
1042
- cmaps[name] = ListedColormap(data, name=name)
+ cmaps[name] = ListedColormap(list(reversed(data)), name=name)
0 commit comments