Plots.jl
Plots.jl copied to clipboard
Multiple figures?
I couldn't find the answer searching in the issues here, or on the documentation: is it possible to have multiple windows/figures open?
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).
But generally, questions like this find a quicker response on https://gitter.im/tbreloff/Plots.jl , which is the preferred place for usage questions.
Is there any fix/workaround for this issue on GR backend now?
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.
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?
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.
Has this issue been fixed I seem to be having trouble plotting in multiple windows using the GR backend on a julia script
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.