JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js
Other
422 stars 78 forks source link

black colorbar (heatmap) on jupyter-notebook #251

Open asbisen opened 5 years ago

asbisen commented 5 years ago

Describe the bug For some reason only in jupyter-notebook colorbar of a heatmap shows up as a black strip. Same code works fine inside jupyter-lab and atom. Additionally when I click "Edit in Chart Studio" the clorbar shows up correctly in plotly's web app.

screen shot 2018-11-10 at 8 39 13 pm screen shot 2018-11-10 at 8 43 48 pm

Version info

julia> versioninfo()
Julia Version 1.0.1
Commit 0d713926f8 (2018-09-29 19:05 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

Please provide the following:

  1. output of julia command versioninfo()
  2. Output running the following in Julia 0.7 or greater: using Pkg; pkg"status" (if you are on Julia 0.6 or earlier run Pkg.status())
    (v1.0) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
    [c52e3926] Atom v0.7.10
    [6710c13c] AutoGrad v1.1.1
    [fbb218c0] BSON v0.2.1+ #master (https://github.com/MikeInnes/BSON.jl.git)
    [ad839575] Blink v0.8.1
    [336ed68f] CSV v0.4.2
    [5d742f6a] CSVFiles v0.10.0
    [944b1d66] CodecZlib v0.5.1
    [3da002f7] ColorTypes v0.7.5
    [c3611d14] ColorVectorSpace v0.6.2
    [5ae59095] Colors v0.9.5
    [a93c6f00] DataFrames v0.14.1
    [864edb3b] DataStructures v0.14.0
    [0c46a032] DifferentialEquations v5.3.1
    [31c24e10] Distributions v0.16.4
    [89b67f3b] ExcelFiles v0.6.1
    [4f61f5a4] FFTViews v0.2.0
    [7a1cc6ca] FFTW v0.2.4
    [5789e2e9] FileIO v1.0.2
    [8fc22ac5] FilePaths v0.7.0
    [53c48c17] FixedPointNumbers v0.5.3
    [587475ba] Flux v0.6.8
    [59287772] Formatting v0.3.4
    [f6369f11] ForwardDiff v0.10.1
    [28b8d3ca] GR v0.35.0
    [c91e804a] Gadfly v1.0.0
    [f67ccb44] HDF5 v0.10.2
    [7ec9b9c5] Humanize v1.0.0
    [7073ff75] IJulia v1.14.0+ #master (https://github.com/JuliaLang/IJulia.jl.git)
    [2803e5a7] ImageAxes v0.5.0
    [a09fc81d] ImageCore v0.7.3
    [6a3955dd] ImageFiltering v0.5.0
    [6218d12a] ImageMagick v0.7.1
    [80713f31] ImageSegmentation v1.0.1
    [02fcd773] ImageTransformations v0.7.0
    [86fae568] ImageView v0.8.1
    [916415d5] Images v0.16.1
    [1c8ee90f] IterableTables v0.10.0
    [033835bb] JLD2 v0.1.2
    [682c06a0] JSON v0.19.0
    [e5e0dc1b] Juno v0.5.3
    [1902f260] Knet v1.1.1
    [b964fa9f] LaTeXStrings v1.0.3
    [30fc2ffe] LossFunctions v0.5.0
    [ae8d54c2] Luxor v1.1.3
    [dbeba491] Metalhead v0.3.0
    [ffc61752] Mustache v0.5.7
    [47be7bcc] ORCA v0.2.0
    [6fe1bfb0] OffsetArrays v0.8.1
    [5fb14364] OhMyREPL v0.3.0
    [a15396b6] OnlineStats v0.19.2
    [429524aa] Optim v0.17.1
    [3b7a836e] PGFPlots v3.0.1
    [8314cec4] PGFPlotsX v0.3.2
    [9b87118b] PackageCompiler v0.5.0
    [46a55296] ParquetFiles v0.1.0
    [b98c9c47] Pipe v1.0.0+ #master (https://github.com/oxinabox/Pipe.jl.git)
    [f0f68f2c] PlotlyJS v0.12.0+ #master (https://github.com/sglyon/PlotlyJS.jl.git)
    [91a5bcdd] Plots v0.21.0
    [92933f4c] ProgressMeter v0.6.1
    [438e738f] PyCall v1.18.5
    [d330b81b] PyPlot v2.6.3
    [dca85d43] QuartzImageIO v0.5.0
    [1a8c2f83] Query v0.10.1
    [295af30f] Revise v0.7.12
    [20b4e77b] Snippets v0.0.0 [`~/.julia/dev/Snippets`]
    [276daf66] SpecialFunctions v0.7.2
    [1463e38c] StatFiles v0.6.1
    [90137ffa] StaticArrays v0.9.2
    [2913bbd2] StatsBase v0.25.0
    [a110ec8f] Temporal v0.5.3
    [9e3dc215] TimeSeries v0.14.0
    [b8865327] UnicodePlots v0.3.1
    [112f6efa] VegaLite v0.5.0
    [ddb6d928] YAML v0.3.2
    [e88e6eb3] Zygote v0.1.0+ #master (https://github.com/FluxML/Zygote.jl.git)
sglyon commented 5 years ago

Hmm this is strange indeed. I'm not sure what the problem is. Do you get this on different front ends? (juno/ijulia/repl/etc.)?

what about when you save the figure?

asbisen commented 5 years ago

Nope I only see this issue on jupyter-notebook after upgrading my install; PlotlyJS.jl is not longer working with jupyter-lab with recent updates. I am not sure what broke the install, maybe WebIO.

But I am able to see the correct plots as I expect them to be while using Atom or Visual Studio Code.