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

Multiple figures? #822

Open
jebej opened this issue May 13, 2017 · 8 comments
Open

Multiple figures? #822

jebej opened this issue May 13, 2017 · 8 comments

Comments

@jebej
Copy link
Contributor

jebej commented May 13, 2017

I couldn't find the answer searching in the issues here, or on the documentation: is it possible to have multiple windows/figures open?

@mkborregaard
Copy link
Member

Yes, you can use the keyword reuse = false.
I am leaving the issue open, as 1) this could be better documented, and 2) it appears to be broken on the GR backend (pinging @jheinen just to make him aware of this).

@mkborregaard
Copy link
Member

But generally, questions like this find a quicker response on https://gitter.im/tbreloff/Plots.jl , which is the preferred place for usage questions.

@jheinen jheinen added the GR label May 15, 2017
@zhopan77
Copy link

Is there any fix/workaround for this issue on GR backend now?

@jjstickel
Copy link

Once there are multiple figure windows open (via reuse=false), you cannot selectively reuse specified figure windows (via reuse=true); only the last one. See my comment in #47.

@rallen10
Copy link

For the life of me, I cannot figure out how to open multiple plot windows. It seems no matter what I do, it always overwrites the currently open window. I've tried doing this with interactive sessions in REPL and within scripts. I've tried reuse=false. I've tried pythonplot() backend. They all seem to just overwrite on a single plot window.

Here is the most basic example that seems like it should work, but doesn't:

# in REPL
using Plots
y1 = rand(10)
y2 = rand(10)
plot(y1, reuse=false)
plot(y2, reuse=false)

Any advice?

@jheinen
Copy link
Member

jheinen commented Aug 29, 2023

Right now the only workaround (with GR#master) is to press the 'F' key in a GKS QtTerm (created by Plots.jl or plain GR.jl) to freeze the plot window. With a future release, this could also be activated with a reuse=false attribute.

@cristiansinaloa
Copy link

Has this issue been fixed I seem to be having trouble plotting in multiple windows using the GR backend on a julia script

@jheinen
Copy link
Member

jheinen commented Jul 15, 2024

The only workaround (with GR#master) is to press the 'F' key in a GKS QtTerm (created by Plots.jl or plain GR.jl) to freeze the plot window. I tried to implement this functionality with the reuse=false attribute, but this didn't work as expected.

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

8 participants