IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

Update expected figures to use matplotlib 3.5 #590

Closed danielhuppmann closed 2 years ago

danielhuppmann commented 2 years ago

Please confirm that this PR has done the following:

Description of PR

Alerted by the nightly tests... It seems that matplotlib v3.5 changed the order of the legends in stackplot-figures with totals. This PR simply updates the test-figures to reflect the new behavior (alternative approach: change the way that the "total" is added to the legend).

In addition, the PR silences a warning in the plotting module and changes the readme and install-bat-file from py.test to pytest (because this seems to be the more common usage).

codecov[bot] commented 2 years ago

Codecov Report

Merging #590 (ff161a3) into main (20df347) will not change coverage. The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #590   +/-   ##
=====================================
  Coverage   94.2%   94.2%           
=====================================
  Files         50      50           
  Lines       5331    5331           
=====================================
  Hits        5022    5022           
  Misses       309     309           
Impacted Files Coverage Δ
pyam/plotting.py 92.9% <100.0%> (ø)

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 20df347...ff161a3. Read the comment docs.