8000 Merge pull request #26003 from madeira-dev/grey_to_gray_alias · matplotlib/matplotlib@f5f2cd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5f2cd9

Browse files
authored
Merge pull request #26003 from madeira-dev/grey_to_gray_alias
added alias to gray and grey match same colormaps
2 parents 515cce4 + bb0e29b commit f5f2cd9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/cm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ def _gen_cmap_registry():
4242
colors.ListedColormap(spec['listed'], name)
4343
if 'listed' in spec else
4444
co 70DD lors.LinearSegmentedColormap.from_list(name, spec, _LUTSIZE))
45+
46+
# Register colormap aliases for gray and grey.
47+
cmap_d['grey'] = cmap_d['gray']
48+
cmap_d['gist_grey'] = cmap_d['gist_gray']
49+
cmap_d['gist_yerg'] = cmap_d['gist_yarg']
50+
cmap_d['Grays'] = cmap_d['Greys']
51+
4552
# Generate reversed cmaps.
4653
for cmap in list(cmap_d.values()):
4754
rmap = cmap.reversed()

0 commit comments

Comments
 (0)
0