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

Zooming in IJulia notebooks #1272

Open
isentropic opened this issue Apr 11, 2019 · 10 comments
Open

Zooming in IJulia notebooks #1272

isentropic opened this issue Apr 11, 2019 · 10 comments

Comments

@isentropic
Copy link

I'm failing to use the mouse zooming in IJulia
Specifically, panning works with no problem, but when I try to zoom it (shift+leftclick), it zooms to a seaming random location (off the limits from the current plot)

However, it works if the plot was made from REPL (standalone html with the plot works ok)

Here are some logs:


(v1.1) pkg> status
    Status `~/.julia/environments/v1.1/Project.toml`
  [7e558dbc] ArbNumerics v0.4.5
  [6e4b80f9] BenchmarkTools v0.4.2
  [336ed68f] CSV v0.4.3
  [40e3b903] Clang v0.9.0
  [a81c6b42] Compose v0.7.3
  [a0b5b9ef] Cxx v0.2.0+ [`~/.julia/dev/Cxx`]
  [1f15a43c] CxxWrap v0.8.1
  [717857b8] DSP v0.5.2
  [a93c6f00] DataFrames v0.17.1
  [0c46a032] DifferentialEquations v6.3.0
  [31c24e10] Distributions v0.17.0
  [d91b1130] EllipseFit v0.0.0 #master (https://github.com/isentropic/EllipseFit.jl)
  [7a1cc6ca] FFTW v0.2.4
  [c91e804a] Gadfly v1.0.1
  [4b11ee91] Gaston v0.9.2
  [7073ff75] IJulia v1.18.0
  [a98d9a8b] Interpolations v0.11.2
  [2b0e0bc5] LanguageServer v0.5.1
  [9b87118b] PackageCompiler v0.6.3
  [91a5bcdd] Plots v0.24.0
  [c46f51b8] ProfileView v0.4.0
  [438e738f] PyCall v1.91.1
  [d330b81b] PyPlot v2.8.1
  [90137ffa] StaticArrays v0.10.3

(v1.1) pkg>

and


/mnt/BE7C43F57C43A74D/PROJECTS » julia                               zhanibek@zhanibek-MS-7A34
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |


@bjarthur
Copy link
Member

i can reproduce on julia 0.7 using chrome. a very similar if not identical problem occurs when trying to zoom on the gadfly docs. interestingly, hstack(plot(y=[1,2,3]), plot(y=[1,2,3])) at the REPL is not a problem.

that the <svg> tag is wrapped in a <div> in the two cases it is broken, and not in the cases it works, leads me to think that is the problem. not sure how to fix it though.

@bjarthur
Copy link
Member

relevant code is here

@isentropic
Copy link
Author

@bjarthur is there anyone who could help?
Just wondering, am I right to zoom by shift-left-clicking on a rectangle? Maybe there's an alternative way to zoom?
Any alternative solution that does not require me to type the coordinates of the 'rectangle' of interest would do

@Mattriks
Copy link
Member

This issue also appeared over on discourse:
https://discourse.julialang.org/t/gadfly-plot-zoom-does-not-work/

Their solution was to use Safari.

@isentropic
Copy link
Author

Standalone plotting from the terminal (which opens a dedicated tab in Firefox in my case) works though. It really the Firefox issue?

@isentropic
Copy link
Author

Just checked, the issue remains in Chrome, not sure about Safari as I am running Ubuntu

@pfitzseb
Copy link

Might be related to #1256.

@NightMachinery
Copy link

How do I zoom plots in qtconsole? cmd + + zooms the text just fine, but not plots.

@bjarthur
Copy link
Member

bjarthur commented Oct 2, 2021

have you tried the interactivity tools built in to gadfly?

@NightMachinery
Copy link

NightMachinery commented Oct 3, 2021

@bjarthur commented on Oct 2, 2021, 3:47 PM GMT+3:30:

have you tried the interactivity tools built in to gadfly?

These don't work on qtconsole:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants