-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Upgrade plotly.js to v2.6.3 #3958
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3958 +/- ##
==========================================
+ Coverage 62.45% 62.49% +0.04%
==========================================
Files 29 29
Lines 7223 7223
==========================================
+ Hits 4511 4514 +3
+ Misses 2712 2709 -3
Continue to review full report at Codecov.
|
Looks good at first glance. Did you also build the docs to compare the new examples against http://docs.juliaplots.org/latest/generated/plotlyjs/ ? |
I will check it, thanks. |
When building the docs, I had below errors $ julia --project=docs/ docs/make.jl
┌ Warning: Replacing module `ColorSchemes`
└ @ Base loading.jl:959
┌ Warning: Gnuplot is not available on this system. Gaston will be unable to produce any plots.
└ @ Gaston ~/.julia/packages/Gaston/ctAQy/src/Gaston.jl:88
ERROR: LoadError: IOError: open("/home/meme/.julia/dev/PlotDocs.jl/docs/src/generated/plotthemes.md", 577, 33060): no such file or directory (ENOENT)
Stacktrace:
[1] uv_error
@ ./libuv.jl:97 [inlined]
[2] open(path::String, flags::UInt16, mode::UInt64)
@ Base.Filesystem ./filesystem.jl:87
[3] sendfile(src::String, dst::String)
@ Base.Filesystem ./file.jl:956
[4] cp(src::String, dst::String; force::Bool, follow_symlinks::Bool)
@ Base.Filesystem ./file.jl:355
[5] top-level scope
@ ~/.julia/dev/PlotDocs.jl/docs/make.jl:17
in expression starting at /home/meme/.julia/dev/PlotDocs.jl/docs/make.jl:17 So I tried creating the folder of $ julia --project=docs/ docs/make.jl
┌ Warning: Replacing module `ColorSchemes`
└ @ Base loading.jl:959
┌ Warning: Gnuplot is not available on this system. Gaston will be unable to produce any plots.
└ @ Gaston ~/.julia/packages/Gaston/ctAQy/src/Gaston.jl:88
ansicolor = true
[ Info: SetupBuildDirectory: setting up build directory.
ERROR: LoadError: 'generated/attributes_series.md' is not an existing page!
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] walk_navpages(visible::Bool, title::String, src::String, children::Vector{Any}, parent::Documenter.Documents.NavNode, doc::Documenter.Documents.Document)
@ Documenter.Builder ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:189
[3] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:204 [inlined]
[4] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:206 [inlined]
[5] #1
@ ./none:0 [inlined]
[6] iterate
@ ./generator.jl:47 [inlined]
[7] collect_to!(dest::Vector{Documenter.Documents.NavNode}, itr::Base.Generator{Vector{Pair{String, String}}, Documenter.Builder.var"#1#2"{Documenter.Documents.NavNode, Documenter.Documents.Document}}, offs::Int64, st::Int64)
@ Base ./array.jl:728
[8] collect_to_with_first!
@ ./array.jl:706 [inlined]
[9] collect(itr::Base.Generator{Vector{Pair{String, String}}, Documenter.Builder.var"#1#2"{Documenter.Documents.NavNode, Documenter.Documents.Document}})
@ Base ./array.jl:687
[10] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:207 [inlined]
[11] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:194 [inlined]
[12] walk_navpages(title::String, children::Vector{Pair{String, String}}, parent::Documenter.Documents.NavNode, doc::Documenter.Documents.Document)
@ Documenter.Builder ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:203
[13] walk_navpages(p::Pair{String, Any}, parent::Documenter.Documents.NavNode, doc::Documenter.Documents.Document)
@ Documenter.Builder ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:206
[14] #1
@ ./none:0 [inlined]
[15] iterate
@ ./generator.jl:47 [inlined]
[16] collect_to!
@ ./array.jl:728 [inlined]
[17] collect_to_with_first!(dest::Vector{Documenter.Documents.NavNode}, v1::Documenter.Documents.NavNode, itr::Base.Generator{Vector{Pair{String, Any}}, Documenter.Builder.var"#1#2"{Documenter.Documents.NavNode, Documenter.Documents.Document}}, st::Int64)
@ Base ./array.jl:706
[18] collect(itr::Base.Generator{Vector{Pair{String, Any}}, Documenter.Builder.var"#1#2"{Documenter.Documents.NavNode, Documenter.Documents.Document}})
@ Base ./array.jl:687
[19] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:207 [inlined]
[20] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:194 [inlined]
[21] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:203 [inlined]
[22] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:206 [inlined]
[23] (::Documenter.Builder.var"#1#2"{Nothing, Documenter.Documents.Document})(p::Pair{String, Vector{Pair{String, Any}}})
@ Documenter.Builder ./none:0
[24] iterate
@ ./generator.jl:47 [inlined]
[25] collect_to!(dest::Vector{Documenter.Documents.NavNode}, itr::Base.Generator{Vector{Any}, Documenter.Builder.var"#1#2"{Nothing, Documenter.Documents.Document}}, offs::Int64, st::Int64)
@ Base ./array.jl:728
[26] collect_to_with_first!
@ ./array.jl:706 [inlined]
[27] collect(itr::Base.Generator{Vector{Any}, Documenter.Builder.var"#1#2"{Nothing, Documenter.Documents.Document}})
@ Base ./array.jl:687
[28] walk_navpages
@ ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:207 [inlined]
[29] runner(#unused#::Type{Documenter.Builder.SetupBuildDirectory}, doc::Documenter.Documents.Document)
@ Documenter.Builder ~/.julia/packages/Documenter/qdbx6/src/Builder.jl:146
[30] dispatch(#unused#::Type{Documenter.Builder.DocumentPipeline}, x::Documenter.Documents.Document)
@ Documenter.Utilities.Selectors ~/.julia/packages/Documenter/qdbx6/src/Utilities/Selectors.jl:170
[31] #2
@ ~/.julia/packages/Documenter/qdbx6/src/Documenter.jl:266 [inlined]
[32] cd(f::Documenter.var"#2#3"{Documenter.Documents.Document}, dir::String)
@ Base.Filesystem ./file.jl:106
[33] #makedocs#1
@ ~/.julia/packages/Documenter/qdbx6/src/Documenter.jl:265 [inlined]
[34] top-level scope
@ ./timing.jl:210
in expression starting at /home/meme/.julia/dev/PlotDocs.jl/docs/make.jl:80 I need more time to figure it out. |
Using vanilla julia, it works as expected on my side: $ julia --project=docs -e 'using Pkg; pkg"dev https://github.com/JuliaPlots/PlotReferenceImages.jl"'
$ julia --project=docs -e 'using Pkg; pkg"dev https://github.com/JuliaPlots/PlotDocs.jl"'
$ julia --project=docs -e 'using Pkg; pkg"dev https://github.com/JuliaPlots/Plots.jl"'
$ julia --project=docs -e 'using Pkg; pkg"add Documenter StatsPlots PlotlyJS Gaston GR PyPlot InspectDR PGFPlotsX UnicodePlots"'
$ cd ~/.julia/dev/Plots
$ ... # now apply https://github.com/JuliaPlots/Plots.jl/pull/3958.patch
$ cd ~/.julia/dev/PlotDocs # <== are you in the correct directory ?
$ GKSwstype=nul julia --project=docs docs/make.jl
[...]
ansicolor = true
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates. |
I think |
See how we build the docs in CI: Plots.jl/.github/workflows/docs.yml Lines 49 to 56 in c32dbee
EDIT: I've updated the julia commands to use |
@t-bltg Thanks for your patient support, I can build the docs now. Except the polar plot, every plot in |
Thanks for taking the time to fully investigate any potential regression ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I think the polar plots have no essential difference.
Well, they do look better now, but they lack the plots styling, such as background color, r-axis position, etc.. But in priciple this can also be changed in another PR
Will the new LaTeX compatibility be ported to the Plots.jl plotlyjs() backend? |
I've upgraded to Julia 1.7, and still, I see the following: |
I think you are confusing the version numbers of plotly.js (the javascript library) and Plotly.jl/ PlotlyJS.jl, julia libraries which provide bindings for the javascript library in julia. |
ok. That makes sense. Does this update to the javascript library mean that the julia libraries will be relatively easily updated to incorporate the LaTeX bug fix? |
* Upgrade plotly.js to version 2.6.3 * plotly polar support, api changed in plotly.js v2.x.x https://plotly.com/javascript/polar-chart/ https://community.plotly.com/t/announcing-plotly-js-2-0/53675
Announcing Plotly.js 2.0!
Changes in this pr
Plotly.newPlot()
instead of thePlotly.plot()
function which has been deprecated/under-documented for years and deleted in v2.x.xTest result
Bugs fixed
Because there is no enough test for Plotly(JS), I checked some bug about them.
Fixed bugs duplicated in current version
Bugs not duplicated in either current version or pr version, so fix them
plot
one point withplotlyjs
andplotly
backends #1887markersize
is scaled wrong #3945 (not marked as fixed due to duplicated in gr)