Is there a way to make one legend entry per colour? I’d like to specify that green represents plants and brown represents nutrients. I am using Plots.jl
You could just plot the first line of each colour separately and provide a label, then pass an empty label to subsequent plot calls with that colour:
plot(1:10, rand(10), color = 1, label = "Blue")
plot!(1:10, rand(10), color = 2, label = "Orange")
for _ in 1:10
plot!(1:10, rand(10), color = 1, label = "")
end