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

pycxsimulator.py MatplotlibDeprecationWarning in Matplotlib version 3.8.1 #7

Open
cartesian-product opened this issue Nov 8, 2023 · 1 comment

Comments

@cartesian-product
Copy link

cartesian-product commented Nov 8, 2023

As of v3.8.1 (or perhaps earlier), the following raises an error:
warnings.filterwarnings("ignore", category = matplotlib.cbook.MatplotlibDeprecationWarning)

AttributeError: module 'matplotlib.cbook' has no attribute 'MatplotlibDeprecationWarning'

The following adjustment may work for multiple versions of Matplotlib:
try: warnings.filterwarnings("ignore", category = matplotlib.cbook.MatplotlibDeprecationWarning) except: warnings.filterwarnings("ignore", category = matplotlib.MatplotlibDeprecationWarning)

@hsayama
Copy link
Owner

hsayama commented Dec 27, 2023

Thank you very much (and my apologies for the very delayed reply)!! I will make sure to fix this in the next update (which should be fairly soon).

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

2 participants