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

Visclaw plot window does not show in v5.9.1 #227

Open
cpraveen opened this issue Oct 3, 2023 · 7 comments
Open

Visclaw plot window does not show in v5.9.1 #227

cpraveen opened this issue Oct 3, 2023 · 7 comments

Comments

@cpraveen
Copy link

cpraveen commented Oct 3, 2023

I tried v5.9.1 and ran this https://github.com/clawpack/pyclaw/blob/d346bcd8303c10f9bb8f63e01fe498787ae4d2a0/examples/advection_1d/advection_1d.py

python advection_1d.py iplot=1

First I got this

/Users/praveen/Applications/clawpack/visclaw/src/python/visclaw/frametools.py:936: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  elif pp['patch_bgcolor'] is not 'w':

I changed "is not" to "!=".

Then it runs without any error/warnings, but the plot window does not come up and there is no error/warnings.

I get the visclaw prompt and when I plot frames, no window comes up.

@cpraveen cpraveen changed the title Plot window does not show in v5.9.1 Visclaw plot window does not show in v5.9.1 Oct 3, 2023
@ketch
Copy link
Member

ketch commented Oct 3, 2023

The issue you have with no plot appearing is definitely unrelated to the syntax warning. I believe it's also unrelated to Clawpack and should be an issue with your matplotlib setup. If you run a small Python script that generates a plot with matplotlib, does the plot appear?

@cpraveen
Copy link
Author

cpraveen commented Oct 3, 2023

I am able to plot with matplotlib.

With visclaw, it is behaving as if figure has been plotted but show() has not been called.

@cpraveen
Copy link
Author

cpraveen commented Oct 3, 2023

I also ran this inside ipython

from clawpack.pyclaw import examples
claw = examples.shock_bubble_interaction.setup()
claw.run()
claw.plot()

No plot window appeared, but when I come out of visclaw and back to ipython prompt, then the plot window was displayed.

@cpraveen
Copy link
Author

cpraveen commented Oct 5, 2023

My conda had installed latest matplotlib which is 3.8.0 and this seems to have some issue. Downgrading to 3.7.3 fixed the plot issue for me.

@cpraveen cpraveen closed this as completed Oct 5, 2023
@mandli
Copy link
Member

mandli commented Oct 5, 2023

@cpraveen we may not want to close this quite yet if this is a problem with a new version of matplotlib.

@mandli mandli reopened this Oct 5, 2023
@cpraveen
Copy link
Author

cpraveen commented Oct 5, 2023

I have seen this issue with matplotlib=3.8.0 on three different computers. Using previous version 3.7.3 works in each case.

@cpraveen
Copy link
Author

cpraveen commented Dec 7, 2023

I am not seeing this problem with matplotlib-3.8.1, so maybe this can be closed.

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