Closed
Description
Bug summary
A minor bug, with a simple fix: mpl.colormaps[ "Grays" ].name
is "Greys", not "Greys"
Code for reproduction
print( f'{mpl.colormaps[ "Grays" ].name = }' ) # Greys
Actual outcome
mpl.colormaps[ "Grays" ].name = 'Greys'
Expected outcome
mpl.colormaps[ "Grays" ].name = 'Grays'
Additional information
A suggested fix: in cm.py, after lines 47 - 50
# Register colormap aliases for gray and grey.
cmap_d['grey'] = cmap_d['gray']
cmap_d['gist_grey'] = cmap_d['gist_gray']
cmap_d['gist_yerg'] = cmap_d['gist_yarg']
cmap_d['Grays'] = cmap_d['Greys']
change their .name s too:
cmap_d['grey'].name = 'grey'
cmap_d['gist_grey'].name = 'gist_grey'
cmap_d['gist_yerg'].name = 'gist_yerg'
cmap_d['Grays'].name = 'Grays'
Operating system
macos 10.15.7
Matplotlib Version
3.8.4
Matplotlib Backend
No response
Python version
3.10.0
Jupyter version
No response
Installation
pip