I would like to do something like the following:
x = 1:10 y = 2.*x for p = 1:3 plot(x,y, lab = "Data") p == 1 ? legend(:topright) : legend(false)
Except for the life of me I can’t find out how to change the legend after having plotted - it seems you can only do
plot(x, y, legend=false) but not the above. Is that the case?