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

Are the [Julia] docs up to date? #16

Open
vinnief opened this issue Mar 3, 2020 · 4 comments
Open

Are the [Julia] docs up to date? #16

vinnief opened this issue Mar 3, 2020 · 4 comments

Comments

@vinnief
Copy link

vinnief commented Mar 3, 2020

i cannot get the examples to run in julia 1.1 , I get type errors, plot wont accept the arrays of string => values any more, it needs an array of abstracttypes....
i.e. not trace2 = [
"x" => [1, 2, 3, 4],
"y" => [16, 5, 11, 9],
"type" => "scatter"]
but
trace1 = scatter(
x= [1, 2, 3, 4],
y= [10, 15, 13, 17],
mode="lines")
response = Plotly.plot(trace1).
Where can i find the version of Julia de the examples are based on, and where can i find docs to use plotly in Julia 1.1 and later?
Sorry, I am new in Julia, probably the questions are easily solvable.

@WeiMXi
Copy link

WeiMXi commented Mar 10, 2020

I am also very disappointed, the official examples are almost unavailable

@WeiMXi
Copy link

WeiMXi commented Mar 11, 2020

I am also very disappointed, the official examples are almost unavailable

I try this office doc, but obviously some thing is not support by my julia. I suspect the official may have stopped updating for Julia?

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Genuine Intel(R) CPU 0000 @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

julia> using Plotly

julia>

julia>

julia> data = [
         [
           "x" => [0, 1, 2],
               "y" => [6, 10, 2],
           "error_y" => [
             "type" => "data",
             "array" => [1, 2, 3],
             "visible" => true
           ],
           "type" => "scatter"
         ]
       ]
1-element Array{Array{Pair{String,Any},1},1}:
 ["x" => [0, 1, 2], "y" => [6, 10, 2], "error_y" => Pair{String,Any}["type" => "data", "array" => [1, 2, 3], "visible" => true], "type" => "scatter"]

julia> response = Plotly.plot(data, ["filename" => "basic-error-bar", "fileopt" => "overwrite"])
ERROR: MethodError: no method matching Plot(::Array{Array{Pair{String,Any},1},1}, ::Array{Pair{String,String},1})
Closest candidates are:
  Plot(::AbstractArray{T,1}, ::AbstractArray{T,1} where T) where T<:Union{Dates.Date, Dates.DateTime, AbstractString, Number, Symbol} at C:\Users\WeiM\.julia\packages\PlotlyBase\80KwD\src\convenience_api.jl:20
  Plot(::AbstractArray{T,1}, ::AbstractArray{T,1} where T, ::Layout; kind, style, kwargs...) where T<:Union{Dates.Date, Dates.DateTime, AbstractString, Number, Symbol} at C:\Users\WeiM\.julia\packages\PlotlyBase\80KwD\src\convenience_api.jl:20
  Plot(::AbstractArray{T,1}, ::AbstractArray{T,2} where T) where T<:(AbstractArray{T,1} where T) at C:\Users\WeiM\.julia\packages\PlotlyBase\80KwD\src\convenience_api.jl:32
  ...
Stacktrace:
 [1] #plot#6(::Dict{Any,Any}, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(plot), ::Array{Array{Pair{String,Any},1},1}, ::Vararg{Any,N} where N) at C:\Users\WeiM\.julia\packages\PlotlyJS\AhkM5\src\display.jl:145
 [2] plot(::Array{Array{Pair{String,Any},1},1}, ::Vararg{Any,N} where N) at C:\Users\WeiM\.julia\packages\PlotlyJS\AhkM5\src\display.jl:145
 [3] top-level scope at REPL[4]:1

julia> plot_url = response["url"]
ERROR: UndefVarError: response not defined
Stacktrace:
 [1] top-level scope at REPL[5]:1

@jackparmer
Copy link
Contributor

@sglyon is working on this

@jackparmer jackparmer changed the title Are the docs up to date? Are the [Julia] docs up to date? Aug 4, 2021
@sglyon
Copy link
Contributor

sglyon commented Aug 11, 2021

Yep -- sorry for the delay in getting the updates up. We have made some great changes to the Julia plotly packages and that work will be represented in the docs soon!

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

4 participants