Skip to content

[Bug]: Colormap Display in Documentation is wrong for dark mode #27982

@lkskstlr

Description

@lkskstlr

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy