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

savefig stacked in a while loop for saving a subplot from Plots.jl #180

Closed
hayatoikoma opened this issue Feb 23, 2018 · 5 comments
Closed

Comments

@hayatoikoma
Copy link

When I tried to save a subplot generated with Plots.jl via savefig, I found that it doesn't exit from a while loop.

The code example to reproduce this problem is given in JuliaPlots/Plots.jl#1397.

I couldn't figure out why the Blink command keep returning nothing...

@sglyon
Copy link
Member

sglyon commented Feb 26, 2018

Hmm, that is strange.

I have an updated set of frontend code that will make savefig much more reliable and performant. As long as your needs aren't extremely time sensitive, I think it might be best to wait until that is released.

@hayatoikoma
Copy link
Author

That's great to know. As I can save the figure through directly calling PlotlyJS.savefig, it is not time sensitive for me.

I hope this is going to work on your new frontend!

@kim-tom
Copy link

kim-tom commented Apr 21, 2018

I have same issue on savefig from Plots.
"PlotlyJS.savefig" helped me to save figure .eps on command line.
But I can't implement same code on Jupyter Notebook.

@sglyon
Copy link
Member

sglyon commented Apr 21, 2018

There will be some upcoming changes for how figures can be saved very soon -- I just need to find time to push the changes through and test them.

If anyone has some time and is interested in helping me implement that, please let me know!

In the mean time I could post instructions for how to get a more reliable savefig experience -- though it will require some manual effort until the above mentioned updates are complete.

@sglyon
Copy link
Member

sglyon commented Aug 31, 2018

savefig stack has been re-written. Please try the new stuff!

For now, please use the master branch

] # enter pkg mode
(v1.0) pkg> checkout PlotlyJS

If you want save figures you can do

] # enter package mode
(v1.0) pkg> add https://github.com/sglyon/ORCA.jl.git#master

If this doesn't resolve your issue here, please reopen the issue and leave a comment describing what went wrong

@sglyon sglyon closed this as completed Aug 31, 2018
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