fix transposing
This commit is contained in:
parent
138589bb61
commit
ea4b86391c
@ -1030,11 +1030,7 @@ end
|
||||
|
||||
# get a list of dictionaries, each representing the series params
|
||||
function plotly_series(plt::Plot)
|
||||
slist = []
|
||||
for series in plt.series_list
|
||||
append!(slist, plotly_series(plt, series))
|
||||
end
|
||||
slist
|
||||
[plotly_series(plt, series) for series in plt.series_list]
|
||||
end
|
||||
|
||||
# get json string for a list of dictionaries, each representing the series params
|
||||
|
||||
@ -8,6 +8,7 @@ function plotlyjs_syncplot(plt::Plot{PlotlyJSBackend})
|
||||
traces = PlotlyJS.GenericTrace[]
|
||||
for series_dict in plotly_series(plt)
|
||||
plotly_type = pop!(series_dict, :type)
|
||||
series_dict[:transpose] = false
|
||||
push!(traces, PlotlyJS.GenericTrace(plotly_type; series_dict...))
|
||||
end
|
||||
PlotlyJS.addtraces!(plt.o, traces...)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user