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

feature: display image in the same plot instead of creating a new one #2106

Open
johnnychen94 opened this issue Apr 15, 2021 · 3 comments
Open

Comments

@johnnychen94
Copy link

JuliaImages/ImageShow.jl#29 tries to display a sequence of images to the plot pane. The plot count increases as we repeatedly call the play/explore function and thus requires a lot of memory.

Is there a way to not create a new plot for this job? Or maybe just keep the latest n plots?

Originally posted by @IanButterworth
I just noticed that in the example gifs, vscode appears to be creating a new plot per frame? Does it retain the old plots? That would be bad for memory usage

@pfitzseb
Copy link
Member

Sure, you just gotta do it yourselves (e.g. via WebIO or some other custom JS you're communicating with).

@johnnychen94
Copy link
Author

Hmmm, because ImageShow does not communicate with the IDE directly (it uses show(io, ::MIME"image/png", img) and display(img)), is it possible to add some custom keyword to display(e.g., new_plot=true)?

@davidanthoff davidanthoff added this to the Backlog milestone May 5, 2021
@davidanthoff
Copy link
Member

I'm not keen on this, it seems if you want to show an animation that just requires a different display API than what we have at the moment.

@davidanthoff davidanthoff removed this from the Backlog milestone Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants