Skip to content

Bump minimum version of matplotlib and enable matplotlib 3.5.0 - #1334

Merged
StanczakDominik merged 6 commits into
PlasmaPy:mainfrom
namurphy:matplotlib-api-change
Nov 18, 2021
Merged

StanczakDominik merged 6 commits into
PlasmaPy:mainfrom
namurphy:matplotlib-api-change

Conversation

@namurphy

Copy link
Copy Markdown
Member

The nonposy keyword was removed from matplotlib 3.5.0, and replaced with nonpositive which was added in matplotlib 3.3.0. The easiest fix was to replace nonposy with nonpositive and bump the minimum version of matplotlib from 3.2.0 to 3.3.0.

If we wanted to stay compatible with matplotlib 3.2.0, an alternative would be to put a try/except clause to catch the TypeError. I don't prefer that approach because that fix is less permanent.

The nonposy keyword was removed in matplotlib 3.5.0 and replaced with
nonpositive.
@namurphy
namurphy requested a review from rocco8773 as a code owner November 18, 2021 04:36
@github-actions github-actions Bot added the plasmapy.diagnostics Related to the plasmapy.diagnostics subpackage label Nov 18, 2021
@codecov

codecov Bot commented Nov 18, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1334 (cd4515c) into main (3fe2f71) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1334   +/-   ##
=======================================
  Coverage   97.09%   97.09%           
=======================================
  Files          73       73           
  Lines        7165     7165           
=======================================
  Hits         6957     6957           
  Misses        208      208           
Impacted Files Coverage Δ
plasmapy/diagnostics/langmuir.py 93.75% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fe2f71...cd4515c. Read the comment docs.

@namurphy namurphy added Availability requirements Related to updating requirements priority: high Issues & PRs with significant urgency and importance that should be addressed soon labels Nov 18, 2021
@StanczakDominik
StanczakDominik enabled auto-merge (squash) November 18, 2021 09:17
@StanczakDominik
StanczakDominik merged commit 0c3f325 into PlasmaPy:main Nov 18, 2021

@StanczakDominik StanczakDominik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense!

@namurphy
namurphy deleted the matplotlib-api-change branch November 18, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plasmapy.diagnostics Related to the plasmapy.diagnostics subpackage priority: high Issues & PRs with significant urgency and importance that should be addressed soon requirements Related to updating requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants