Manually create legend in Plots.jl

Thanks for your help. I didn’t know that label can be set to false. I put together a MWE based on your solution.

using Plots
x = rand(10)
plot(x, label = false)
temp = [-10 -20; -30 -40 ]
plot!(temp, ylims=(0,1), color=[:green :red], label=["a" "b"])
3 Likes