Plots.jl 图例文字颜色?

Plots.jl legend text color?

简单但看似没有答案的问题:

是否可以自定义Plots.jl中的图例,使其具有不同的 不同文字颜色的文字标签?使用 GR 后端。

如果你使用一个图,你可以让它与 legendfontcolor 一起工作!每种颜色的声明:

julia> using Plots

julia> plot(rand(10), linecolor = :red, legendfontcolor=:red)

julia> plot!(rand(10), linecolor = :blue, legendfontcolor=:blue)