fix transposing

This commit is contained in:
Simon Christ 2021-11-25 17:39:05 +01:00
parent 138589bb61
commit ea4b86391c
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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...)