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

issue with v2.4 docs: api/phoebe.parameters.ParameterSet.plot #35

Open
jmcxabc opened this issue Feb 28, 2024 · 1 comment
Open

issue with v2.4 docs: api/phoebe.parameters.ParameterSet.plot #35

jmcxabc opened this issue Feb 28, 2024 · 1 comment

Comments

@jmcxabc
Copy link

jmcxabc commented Feb 28, 2024

Hello, I am using PHOEBE with Google Colab and find myself unable to create or display a plot even with show=True. There are no errors when I run it, it just doesn't show me a plot. Can you help me?

Thanks,
Julia

@kecnry
Copy link
Member

kecnry commented Feb 28, 2024

Can you try adding %matplotlib inline at the top of your notebook?

If that doesn't work - can you show matplotlib plots in the notebook?

import matplotlib.pyplot as plt
plt.plot([1,2,3], [1,2,3])
plt.show()

The plot commands in phoebe also return the matplotlib figure. You can also try putting that at the end of a cell to force jupyter to show it. For example:

afig, mplfig = b.plot(show=True)
mplfig

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