-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
Description
Bug summary
When visiting https://matplotlib.org/stable/users/explain/colors/colormaps.html in dark mode, the images of the colormaps are changed (probably due to CSS?). This gives the wrong RGB values for the colormaps.
Code for reproduction
Go to https://matplotlib.org/stable/users/explain/colors/colormaps.html and consider the magma colormap. When using a screen color picker and reading out the RGB for magma at the horizontal offset between the m (last letter of uniform) and S (first letter of Sequential) I get
- light mode: 182, 54, 121
- dark mode: 149, 26, 91
- colormaps["magma"](0.5): 182, 54, 121
the problem is not there when opening the colormap image in a new tab.
Actual outcome
dark mode != light mode
Expected outcome
dark mode == light mode
Additional information
No response
Operating system
No response
Matplotlib Version
3.8.2
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None