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

MatplotlibDeprecationWarning with unexpected argument for savefig() #435

Open
elyurn opened this issue Aug 25, 2023 · 3 comments
Open

MatplotlibDeprecationWarning with unexpected argument for savefig() #435

elyurn opened this issue Aug 25, 2023 · 3 comments

Comments

@elyurn
Copy link

elyurn commented Aug 25, 2023

Description

Using the development version of proplot in a venv to get the matplotlib version 3.4.3, I have a deprecation warning with savefig()

Steps to reproduce

import proplot as pplt
pplt.subplots()

Expected behavior: No warning :)

Actual behavior:


.../env/lib/python3.11/site-packages/proplot/figure.py:464: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "facecolor" which is no longer supported as of 3.3 and will become an error two minor releases later
  return func(self, *args, **kwargs)
.../env/lib/python3.11/site-packages/proplot/figure.py:464: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "edgecolor" which is no longer supported as of 3.3 and will become an error two minor releases later
  return func(self, *args, **kwargs)
.../env/lib/python3.11/site-packages/proplot/figure.py:464: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "orientation" which is no longer supported as of 3.3 and will become an error two minor releases later
  return func(self, *args, **kwargs)
.../env/lib/python3.11/site-packages/proplot/figure.py:464: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "bbox_inches_restore" which is no longer supported as of 3.3 and will become an error two minor releases later
  return func(self, *args, **kwargs)

Proplot version

matplotlib: 3.4.3
proplot: 0.9.5.post360

@artofbeinghuman
Copy link

Same for:
proplot: 0.9.7
matplotlib: 3.4.3

mambaforge on m2 macbook

@Mickychen00
Copy link

Hi. If you use Python 3.11, maybe the warning will arise when you use savefig() or save. I found Python 3.10 is ok. Desipte I am still looking forwards to the new release of Proplot.

@Mickychen00
Copy link

Will there be a fixup of this issue?

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

No branches or pull requests

3 participants