Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

Multiple figures?

Open jebej opened this issue 7 years ago • 8 comments

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

jebej avatar May 13 '17 01:05 jebej

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 avatar May 13 '17 14:05 mkborregaard

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

mkborregaard avatar May 13 '17 14:05 mkborregaard

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

zhopan77 avatar Apr 16 '19 18:04 zhopan77

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.

jjstickel avatar Aug 29 '19 15:08 jjstickel

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?

rallen10 avatar Aug 29 '23 17:08 rallen10

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.

jheinen avatar Aug 29 '23 18:08 jheinen

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

cristiansinaloa avatar Jul 14 '24 23:07 cristiansinaloa

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.

jheinen avatar Jul 15 '24 08:07 jheinen