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
|
# get a list of dictionaries, each representing the series params
|
||||||
function plotly_series(plt::Plot)
|
function plotly_series(plt::Plot)
|
||||||
slist = []
|
[plotly_series(plt, series) for series in plt.series_list]
|
||||||
for series in plt.series_list
|
|
||||||
append!(slist, plotly_series(plt, series))
|
|
||||||
end
|
|
||||||
slist
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# get json string for a list of dictionaries, each representing the series params
|
# 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[]
|
traces = PlotlyJS.GenericTrace[]
|
||||||
for series_dict in plotly_series(plt)
|
for series_dict in plotly_series(plt)
|
||||||
plotly_type = pop!(series_dict, :type)
|
plotly_type = pop!(series_dict, :type)
|
||||||
|
series_dict[:transpose] = false
|
||||||
push!(traces, PlotlyJS.GenericTrace(plotly_type; series_dict...))
|
push!(traces, PlotlyJS.GenericTrace(plotly_type; series_dict...))
|
||||||
end
|
end
|
||||||
PlotlyJS.addtraces!(plt.o, traces...)
|
PlotlyJS.addtraces!(plt.o, traces...)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user