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

cannot plot in a separate window

Open anj00 opened this issue 4 years ago • 1 comments

PlotlyJS v0.13.0

PlotlyJS used to output into a separate window, not into the plot pane (which I really liked). Now from version 0.13 it uses the plot pane.

is there a way to output into a separate window still (one can make them full screen, easier to switch between plots using taskbar, imho)? I tried

ENV["PLOTS_USE_ATOM_PLOTPANE"] = "false"
using PlotlyJS
plot([1,2,3], rand(3))

and still have the output in the plot pane. is it a bug or me missing some parameters?


julia> versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = "C:\Users\<user>\AppData\Local\atom\app-1.40.1\atom.exe"  -a
  JULIA_NUM_THREADS = 12

  [c52e3926] Atom v0.11.1
  [6e4b80f9] BenchmarkTools v0.4.3
  [3e78a19a] Bukdu v0.4.6
  [336ed68f] CSV v0.5.13   
  [a93c6f00] DataFrames v0.19.4
  [31c24e10] Distributions v0.21.3
  [01fcc997] FTPClient v1.0.1
  [5789e2e9] FileIO v1.0.7
  [59287772] Formatting v0.4.1
  [cd3eb016] HTTP v0.8.6
  [033835bb] JLD2 v0.1.3
  [682c06a0] JSON v0.21.0
  [e5e0dc1b] Juno v0.7.2
  [b27032c2] LibCURL v0.5.2
  [f0f68f2c] PlotlyJS v0.12.5
  [91a5bcdd] Plots v0.27.0
  [2dfb63ee] PooledArrays v0.5.2
  [f269a46b] TimeZones v0.10.2
  [ea10d353] WeakRefStrings v0.6.1
  [0f1e0344] WebIO v0.8.11

anj00 avatar Oct 18 '19 08:10 anj00

I don't think that this has been enabled for the PlotlyJS package. That environment variable seems to be from Plots.jl

I'd be happy to review a pull request that implements this feature.

I think that the solution will probably be customizing this line based on the environment variable.

You may wish to ask/check over at Plots.jl to see exactly how they do it

sglyon avatar Oct 18 '19 13:10 sglyon