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

gmtbegin & gmtend(:show) code block cannot embed figure in Jupyter notebook #1402

Closed
melodyjulia opened this issue Mar 31, 2024 · 2 comments
Closed

Comments

@melodyjulia
Copy link

I tried the following code snippet in Jupyter notebook environment under Linux or MacOS:

x = collect(1:10)

gmtbegin()
basemap(limits=(1,10,-1,1),title="test")
lines(x,sin.(x),legend="sin(x)")
lines(x,cos.(x),legend="cos(x)")
legend(position=(inside="RT",width=1.5))
gmtend(:show)

Instead of showing figure embedded in the Jupyter environment, it opens an external application to view the generated PS file.

@joa-quim
Copy link
Member

I hope I had fixed that in the new 1.12.1 version.

@melodyjulia
Copy link
Author

yes, it works now. Thank you!

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