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.
1 parent a844eca commit e69d6aaCopy full SHA for e69d6aa
1 file changed
lib/matplotlib/cm.py
@@ -46,6 +46,13 @@ def _gen_cmap_registry():
46
for cmap in list(cmap_d.values()):
47
rmap = cmap.reversed()
48
cmap_d[rmap.name] = rmap
49
+
50
+ # Register colormap aliases for gray and grey.
51
+ cmap_d['grey'] = cmap_d['gist_grey'] = cmap_d['gray']
52
+ cmap_d['Grays'] = cmap_d['Greys']
53
+ cmap_d['gist_yerg'] = cmap_d['gist_yarg'] = cmap_d['gray_r']
54
+ cmap_d['grey_r'] = cmap_d['gray_r']
55
56
return cmap_d
57
58
0 commit comments