Repository navigation
Explicitly remove grids for pcolormesh - #7219
Merged
Merged
Conversation
Illviljan
marked this pull request as ready for review
October 25, 2022 18:23
headtr1ck
approved these changes
Oct 26, 2022
headtr1ck
left a comment
Collaborator
There was a problem hiding this comment.
No preference on this.
I guess we can keep the current behavior and silence this warning :)
Loogs good.
Sealdot
added a commit
to Sealdot/xarray
that referenced
this pull request
Nov 20, 2026
pcolormesh unconditionally called ax.grid(False) before drawing, which overrode the axes.grid rcParam and grids enabled directly on the axes. The call was added in pydata#7219 to opt out of the matplotlib 3.5 deprecation warning about pcolor/pcolormesh automatically removing grids; matplotlib no longer removes the grid, so the explicit call now only hides a grid the user asked for. Fixes pydata#11919 AI assistance: Cognition Devin CLI agent (SWE-2 High). Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes a warning in the plotting tests, related to https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.5.0.html#auto-removal-of-grids-by-pcolor-and-pcolormesh.
I just added
ax.grid(False)but maybe we just want whatever is the default of matplotlib?