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

plot does not show inline #40

Open
RobertMZ opened this issue Apr 21, 2016 · 6 comments
Open

plot does not show inline #40

RobertMZ opened this issue Apr 21, 2016 · 6 comments

Comments

@RobertMZ
Copy link

If one uses the plot function of scitools, it does not show the plot (even with the raw_input(' ')), but it can save the figure as a pdf.

@johannesring
Copy link
Contributor

Which backend are you using?

@RobertMZ
Copy link
Author

backend is the matplotlib; if I import plot from matplotlib everything works fine.

@jacobsca
Copy link

jacobsca commented Aug 9, 2018

I have exactly the same problem. I am (very) puzzled.

I installed scitools from https://github.com/hplgit/scitools and it loads fine. I ran the diagnostics and all fine. I can run matplotlib - all fine.

I cannot see the plot. I can save it as eps or pdf - fine.

Help?

@johannesring
Copy link
Contributor

johannesring commented Aug 9, 2018

You can fix this by calling the show function on the matplotlib backend object, like in this example:

from scitools.std import *
x = linspace(0, 2*pi, 101)
y = sin(x)
plot(x, y)
show()
g = get_backend()
g.show()
raw_input('press enter')

@jacobsca
Copy link

jacobsca commented Aug 9, 2018 via email

@jacobsca
Copy link

jacobsca commented Aug 28, 2018 via email

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