Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 655e109 + f3e0bfb commit b9710e6Copy full SHA for b9710e6
1 file changed
lib/matplotlib/_cm_listed.py
@@ -1036,3 +1036,6 @@
1036
('viridis', _viridis_data)):
1037
1038
cmaps[name] = ListedColormap(data, name=name)
1039
+ # generate reversed colormap
1040
+ name = name + '_r'
1041
+ cmaps[name] = ListedColormap(list(reversed(data)), name=name)
0 commit comments