Plots.jl: Cannot plot large scale figure with plotlyjs() backend on atom Juno

Created on 19 Feb 2020  路  2Comments  路  Source: JuliaPlots/Plots.jl

Hi,

When I try something like,

using Plots
plotlyjs()
heatmap(rand(10,10))

it works fine and generate the correct figure. But when I increase the scale,

using Plots
plotlyjs()
heatmap(rand(400,400))

it does not output the resulting figure. Any thoughts about what is wrong? Thanks a lot!

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = "C:\Users\lihao\AppData\Local\atom\app-1.44.0\atom.exe"  -a
  JULIA_NUM_THREADS = 6

Most helpful comment

Turns out there is a limit on the size of data URIs after all. Everything under 2MB (equivalent to heatmap(rand(168,168))) works fine, everything above that doesn't. This is a Juno bug though, so let's close this in favour of https://github.com/JunoLab/Juno.jl/issues/488.

All 2 comments

I can reproduce, on the newest versions. Very strange though. @pfitzseb did you not change the way Juno handles plotlyjs plots recently?

Turns out there is a limit on the size of data URIs after all. Everything under 2MB (equivalent to heatmap(rand(168,168))) works fine, everything above that doesn't. This is a Juno bug though, so let's close this in favour of https://github.com/JunoLab/Juno.jl/issues/488.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dancsi picture dancsi  路  4Comments

tbenst picture tbenst  路  3Comments

nebuta picture nebuta  路  3Comments

jebej picture jebej  路  4Comments

lstagner picture lstagner  路  5Comments