Skip to content

DOC: Correct shading behavior descriptions in pcolor/pcolormesh#31731

Open
lucaznch wants to merge 2 commits into
matplotlib:mainfrom
lucaznch:docs-pcolor-pcolormesh
Open

DOC: Correct shading behavior descriptions in pcolor/pcolormesh#31731
lucaznch wants to merge 2 commits into
matplotlib:mainfrom
lucaznch:docs-pcolor-pcolormesh

Conversation

@lucaznch
Copy link
Copy Markdown
Contributor

PR summary

This PR fixes minor documentation inconsistencies shared by both pcolor and pcolormesh.

  • Incompatible X, Y, and C raise a TypeError rather than ValueError.
  • For shading='flat' when X, Y and C have the same shape as C, the last row/column of C is no longer dropped with a deprecation warning

The pcolormesh documentation fix already appears in #31362, but I noticed the same issue in pcolor as well, so I'm opening this separate PR to address both.

AI Disclosure

None.

PR checklist

lucaznch added 2 commits May 21, 2026 20:32
pcolor and pcolormesh raise TypeError
for incompatible grid and data dimensions.
When X, Y, C have the same shape, the last row/column
of C is no longer dropped with a deprecation warning
(a TypeError is raised instead).
@lucaznch
Copy link
Copy Markdown
Contributor Author

cc @timhoffm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant