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

Crash with Matplotlib 3.2.1 #29

Closed
chrisgmorton opened this issue Jun 8, 2020 · 2 comments
Closed

Crash with Matplotlib 3.2.1 #29

chrisgmorton opened this issue Jun 8, 2020 · 2 comments

Comments

@chrisgmorton
Copy link

chrisgmorton commented Jun 8, 2020

I personally find this package super useful. If I can help keep it alive please let me know. Here's a crash with the latest Matplotlib release. Hopefully the fix is quick and easy!

if i==j: self.axes.append(self.fig.add_subplot(n,n,1+i*2+j, projection='smith'))
File "/Users/chrisgmorton/fusion/prod/lib/python3.8/site-packages/matplotlib/figure.py", line 1401, in add_subplot
self._process_projection_requirements(*args, **kwargs)
File "/Users/chrisgmorton/fusion/prod/lib/python3.8/site-packages/matplotlib/figure.py", line 1118, in _process_projection_requirements
projection_class = projections.get_projection_class(projection)
File "/Users/chrisgmorton/fusion/prod/lib/python3.8/site-packages/matplotlib/projections/init.py", line 56, in get_projection_class
raise ValueError("Unknown projection %r" % projection)
ValueError: Unknown projection 'smith'

@alexpacini
Copy link

I just tried and it is working fine for me with matplotlib-3.2.1 and numpy-1.18.5 on python3 on Linux.
Did you import it?

from smithplot import SmithAxes

It registers the projection when the module is imported.

@chrisgmorton
Copy link
Author

Okay, this was driver error as I had commented out the import line for the package. I'll close this one but I have a new issue will submit.

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