如何分配颜色implicit_plot
?
using ImplicitPlots, Plots
v = [(x,y) -> (x+3)*(y^3-7)+18, (x,y) -> sin(y*exp(x)-1)]
p = plot()
for f in v
implicit_plot!(f; xlims = (-1, 3), ylims = (-1, 2), framestyle = :origin, lc = [:red, :blue])
end
p
我期待的东西是:
lc = [:red, :blue]
for (i, f) in enumerate (v)
implicit_plot!(f; xlims = (-1, 3), ylims = (-1, 2), lc = lc[i])
end
如何为第二个函数传递蓝色渐变?(我可以通过lc = :blues
,但这也会使第一行变成蓝色。)
奖励问题:我可以将向量或元组传递给implicit_plot
吗?估计不支持。