Skip to content

Make map plotting compatible with matplotlib 3.11, add rudimentary unit test, raise matplotlib lower bound to 3.5#956

Merged
thehrh merged 1 commit into
masterfrom
fix/map_plotting_cmap
Jun 25, 2026
Merged

Make map plotting compatible with matplotlib 3.11, add rudimentary unit test, raise matplotlib lower bound to 3.5#956
thehrh merged 1 commit into
masterfrom
fix/map_plotting_cmap

Conversation

@thehrh

@thehrh thehrh commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

The new plotting test in here would have caught #955 (verified).

Since it turned out that Colormap.set_bad() has been deprecated, those calls have also been replaced with Colormap.with_extremes(bad=...). This method was also already included in version 3.5, so it is consistent with the new lower bound on matplotlib.

Closes #955

@thehrh thehrh added this to the 4.3 milestone Jun 18, 2026
@thehrh thehrh requested review from bleaktwig and removed request for bleaktwig June 18, 2026 14:05
@thehrh thehrh merged commit 037293d into master Jun 25, 2026
2 checks passed
@thehrh thehrh deleted the fix/map_plotting_cmap branch June 25, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removal of matplotlib.cm.get_cmap in Matplotlib 3.11.0

2 participants