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

Deprecation error with matplotlib.pyplot.gca(projection='3d') #260

Open
tran0923 opened this issue Jun 16, 2023 · 1 comment
Open

Deprecation error with matplotlib.pyplot.gca(projection='3d') #260

tran0923 opened this issue Jun 16, 2023 · 1 comment

Comments

@tran0923
Copy link

Per matplotlib's official documentation pyplot.gca will no longer accept keyword arguments.

For imexam, this breaks code like:
ax = fig.gca(projection='3d')
at line 1626 in imexamine.py.

One potential fix might be to use ax = fig.add_subplot(projection='3d') instead as suggested here.

This is only relevant for matplotlib version 3.4 and higher and can be avoided locally by using older versions.

@asteroidnerd
Copy link

This is in line 1628+1629 in my version? Fixed by replacing
1628 fig.add_subplot(111)
1629 ax = fig.gca(projection='3d')
with
1628 ax = fig.add_subplot(111, projection='3d')

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