Skip to content

[Bug]: pcolormesh with gouraud shading not respecting bad color #27695

Open
@rcomer

Description

@rcomer

Bug summary

The Quadmesh Demo shows how to set the "bad" color on a colormap to make the masked region yellow. However, it does not work in the current version.

Code for reproduction

https://matplotlib.org/3.8.2/gallery/images_contours_and_fields/quadmesh_demo.html

Actual outcome

image

Expected outcome

With v3.7.3 we had
https://matplotlib.org/3.7.3/gallery/images_contours_and_fields/quadmesh_demo.html
image

Additional information

If we remove shading='gouraud' from the pcolormesh call, the example works as expected.

Operating system

No response

Matplotlib Version

3.8.2 and main

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