I am trying to plot a series of boxplot following http://spencerlyon.com/PlotlyJS.jl/examples/box_plots/ and export it to a static file. However, I am getting errors running the following code:
using PlotlyJS
using Blink
using ORCA
using JuliaDB
using JuliaDBMeta
plot_traces = GenericTrace[]
for keys in collect(keys(boxplot_dict))
boxplot = box(; name = boxplot_dict[keys]["name"], # Specify trace name
y = boxplot_dict[keys]["data"], # Specify trace data
text = boxplot_dict[keys]["hover"], # Specify Hovertext data
hoverinfo = "y+text" # Hover data displayed
)
push!(plot_traces, boxplot)
end
plot(plot_traces, style = boxplot_style)
PlotlyJS.savefig(plot_traces, "test.pdf")
However, I keep getting the error
ERROR: MethodError: no method matching savefig(::Array{GenericTrace,1}, ::String)
Closest candidates are:
savefig(::Plot, ::AbstractString; format, scale, width, height) at /home/jmb/.julia/packages/ORCA/xULYl/src/ORCA.jl:66
savefig(::Union{PlotlyJS.SyncPlot, Plot}, ::AbstractString, ::Any...) at /home/jmb/.julia/packages/PlotlyJS/b9Efu/src/PlotlyJS.jl:49
savefig(::PlotlyJS.SyncPlot, ::Any...; k...) at /home/jmb/.julia/packages/PlotlyJS/b9Efu/src/savefig_orca.jl:1
Stacktrace:
[1] top-level scope at none:0
Are there any suggestions? I submitted a ticket with PlotlyJS.jl