该线程的延续:如何在 Julia Plots 中创建任意数量的子图
当我尝试时
using Plots
plot_array = Any[]
for i in 1:5
push!(plot_array, plot(rand(10))) # make a plot and add it to the plot_array
end
plot(plot_array)
Run Code Online (Sandbox Code Playgroud)
我收到错误:
MethodError: no method matching Plots.Plot{Plots.PlotlyBackend}(::Char, ::Char, ::Char, ::Char, ...)
Closest candidates are: Plots.Plot{Plots.PlotlyBackend}(::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any)
Run Code Online (Sandbox Code Playgroud)
我错过了什么?
我目前在 Julia 中使用 Plots 包,以 pyplot 作为后端。我可以选择 color_palette 并通过
pyplot(color_palette=:delta)
Plots.plot(x, y)
Run Code Online (Sandbox Code Playgroud)