-
Notifications
You must be signed in to change notification settings - Fork 213
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
gmt.show() not working in ipython console #28
Comments
@seisman currently the |
@seisman I tried implementing this using matplotlib But since GMT generates PDF output, I'll try to make it open an external application with the PDF preview (possibly the browser). |
@leouieda, not sure if this is possible, but for quick previewing, is there any way to rasterize the drawing first and then use |
@shicks-seismo that's pretty much what But it only works for the notebook. Opening the external window would be an added option ( |
I implemented this by introducing a new keyword argument:
Will open a PDF preview of the figure in the default PDF viewer. It still won't work for scripts because the command is non-blocking and so the script continues to run and eventually deletes the preview. I might add an argument to |
gmt.show()
can display figure in ipython notebook but not in ipython console.It will be better if
gmt.show()
can open a new figure window just like whatmatplotlib.pyplot.show
does.The text was updated successfully, but these errors were encountered: