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 request : Zoom, pan #40
Comments
This is really the main issue stopping me to us GR (with Julia). I also could not find the source code of GKS QtTerm. Is it open source? |
Any update on this? Where is the source code of GKS QtTerm? |
I don't know the current status of the work on QtTerm, but you can find the source code of gksqt in the GR runtime repository: https://github.com/sciapp/gr/tree/master/lib/gks/qt |
I have seen an interactivity in Jupyter demonstrated at the Josef Twitter. I am looking forward to see it soon here, christmas are approaching:-) |
This is now possible (albeit not yet via the Plots.jl interface): https://forem.julialang.org/jheinen/gr-going-interactive--4dnj
|
Well, it does not work for me, using Julia 1.9.0 on Ubuntu 22.04. I don't get an error message, but no plot window appears... |
Are you using GR v0.72.4 and ist the window title "GR Plot"? |
(GR) pkg> st |
And without window not window title... |
... and you are on the command line without any |
Yes, on in the REPL... |
Could you please update JULIA_DEBUG=GR GRDISPLAY=plot julia using GR
plot(randn(20,5), labels=("a", "b", "c", "d", "e")) |
With this version zoom and pan worked! But only a few seconds. Then I got: julia> using GR
julia> plot(randn(20,5), labels=("a", "b", "c", "d", "e"))
┌ Debug: Found GRDISPLAY in ENV
│ display_name[] = "plot"
└ @ GR ~/.julia/packages/GR/SiORT/src/GR.jl:325
┌ Debug: Default GKS_ENCODING
│ ENV["GKS_ENCODING"] = "utf8"
└ @ GR ~/.julia/packages/GR/SiORT/src/GR.jl:362
julia> Segmentation fault (core dumped) |
I can't reproduce the problem with the run-time version we provide. The problem seems to occur only with the |
The problem should be fixed with 0.72.6 |
You closed this issue a bit too fast. It works now fine if I start Julia with: JULIA_DEBUG=GR GRDISPLAY=plot julia Thanks a lot for the good work! :) But it does NOT work if I start Julia with:
In this case I get the error message:
Content of plot.jl:
Will you re-open this bug, or shall I create a new bug? |
It seems to me, that I'm trying to find a way to actually exit Maybe it has to do with the overlong |
@ufechner7 : With GR 0.72.7 this issue should be fixed - it was a timing problem that essentially occurred on Linux systems with more recent kernels. On our test machines the problem did not occur anymore. Once the version is registered, it would be nice if you could try again. |
First it was working for me, now it doesn't. I will try to figure out why. |
What is working:
This even works if put into a file and executed repeatedly. But if I close the GR window and include the file above again no new window pops up. If I quit Julia, restart it with
and include the file above it works again. The sleep command is not needed. Summary: |
This is the expected behaviour. Closing the window (or leaving Julia) will stop the |
But that makes this feature pretty useless... And it is not the way the normal GR windows behave... |
I don't quite understand why you should stop the Due to performance reasons it makes sense that the process is started only once and runs during the whole Julia session. Since GR is also used in other environments (C, Python, Ruby), we unfortunately do not have arbitrary design options here. If it is only about minimizing the window, this should be feasible. |
Well, my workflow is that I open plot_a, look at it, close it, look at plot_b, close it change some parameters, look at plot_a again... Perhaps you could catch the "click on close icon" event end hide the window instead of closing it? |
And it would be nice to be able to open a new window each time you display a plot. I like the way PythonPlot works, I can have multiple plots on the screen and compare them. Plots.jl has the "reuse=false" option for that. Unluckily this is currently only supported by PythonPlot as far as I know. |
GR is a great package, especially with respect to plotting speed. In the past I have used Gadly with the GTKInteract package, which allows me to zoom/pan around my plots. I'm sure these features are on the road map for GR as well, so this is just me registering my interest in those features. Keep up the good work!
The text was updated successfully, but these errors were encountered: