Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using deprecated ContourSet attributes #5405

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Jul 31, 2023

🚀 Pull Request

Description

For Matplotlib v3.8 the ContourSet class had a re-write (matplotlib/matplotlib#25247) and various of its attributes will be deprecated in the upcoming release. Relevant release notes are
https://matplotlib.org/devdocs/api/next_api_changes/deprecations/25138-AL.html
https://matplotlib.org/devdocs/api/next_api_changes/deprecations/25247-AL.html
https://matplotlib.org/devdocs/api/next_api_changes/deprecations/26399-REC.html

iplt.contourf uses some of these attributes so this PR updates it to work with the new ContourSet.


Consult Iris pull request check list

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.01% ⚠️

Comparison is base (dab88e8) 89.37% compared to head (f2e3939) 89.37%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5405      +/-   ##
==========================================
- Coverage   89.37%   89.37%   -0.01%     
==========================================
  Files          89       89              
  Lines       22426    22444      +18     
  Branches     5379     5382       +3     
==========================================
+ Hits        20043    20059      +16     
- Misses       1637     1639       +2     
  Partials      746      746              
Files Changed Coverage Δ
lib/iris/plot.py 86.45% <50.00%> (-0.65%) ⬇️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@trexfeathers trexfeathers self-assigned this Jul 31, 2023
Copy link
Contributor

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this @rcomer

@trexfeathers trexfeathers merged commit ea2a272 into SciTools:main Jul 31, 2023
17 checks passed
@rcomer
Copy link
Member Author

rcomer commented Jul 31, 2023

Thanks @trexfeathers that was quick! 🚀

@rcomer rcomer deleted the mpl-deprecations branch July 31, 2023 15:12
acchamber added a commit to acchamber/iris that referenced this pull request Aug 7, 2023
…o fix_for_#5372

* 'fix_for_#5372' of https://github.com/acchamber/iris:
  [pre-commit.ci] pre-commit autoupdate (SciTools#5406)
  Avoid using deprecated ContourSet attributes (SciTools#5405)
  removed redundant timeattr check and added tests to ensure datetime/c… (SciTools#5396)
  Include location coordinates in the data variable coordinates attribute (SciTools#5389)
  Added link to UDUNITS-2 database to convert_units docstrings (SciTools#5388)
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.

None yet

2 participants