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

error with pyplot #38

Open
andreall opened this issue Apr 7, 2018 · 3 comments
Open

error with pyplot #38

andreall opened this issue Apr 7, 2018 · 3 comments

Comments

@andreall
Copy link

andreall commented Apr 7, 2018

I have been using wafo (spectrum.models and objects) for some time without any problems. I recently updated anaconda and when trying to use a program that used wafo I found that

plt.figure()

gives the following error:

{ValueError}max() arg is an empty sequence

I have found that it is wafo which is causing this since when I do import matplotlib.pyplot as plt and plt.figure() before any kind of 'wafo' import it works and after it doesn't. I have found that the line messing with pyplot is from wafo.plotbackend import plotbackend as plt but I'm not sure how it will affect the overall behavior if I change this line everywhere. Has anyone experienced the same issue? Thanks!

@pbrod
Copy link
Member

pbrod commented Apr 7, 2018

I am not able to reproduce this. Could you supply a complete example and supply the version of anaconda, matplotlib and wafo?

@andreall
Copy link
Author

andreall commented Apr 7, 2018 via email

@pbrod
Copy link
Member

pbrod commented Apr 8, 2018

I am still not able to reproduce this. However, you could try to uncomment line 18 in plotbackend.py:

 plotbackend.interactive(True)

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