Since the documentation available on the net for Plotly.jl is quite ancient, it seems that the syntax has changed. Now I am wondering how to make subplots in Plotly v0.3.0 For example, if I had two traces such as this, how do I put them in two horizontal subplots (rows = 2, cols = 1)
using Plotly
trace1 = scatter(
x = collect(1:10),
y = randn(10),
mode = lines
line = Dict(
:color => "coral"
:width => 3
)
name = "coral line"
)
trace2 = scatter(
x = collect(1:10),
y = randn(10),
mode = lines
line = Dict(
:color => "thistle"
:width => 3
)
name = "thistle line"
)
#To add them to the same plot
data = [trace1, trace2]
Plotly.plot(data)
But how would I add them into two different subplots in Julia Plotly? For example in python you would use the fig = make_subplots(rows =2 , cols = 2) functions and specify the row and column in each trace fig.add_trace(go.Scatter(...), row = 2, col = 1). ANy idea how to do something similar in Julia
Also on a side not any idea whats the difference between Plotly and PlotlyJS in Julia?