I would like to have a PlotLegends which appears only when the Button is pressed and ListPlot prints the curve, otherwise it shouldn’t be visible. Also every time the Button is pressed ListPlot appends the new curve to the old one, therefore the PlotLegends should print the name for every printed curve, but one at the time. How to achieve that?
I spent hours on searching some guidance which could give me at least an idea of how to start, but all I found is for the static PlotLegends. This is why I’m asking you for a help.
Hi Gianluca, when using PlotLegends -> Automatic the legend doesn’t show for the first curve, it works fine from the moment the second curve is printed. Also I would like to be able to customize the legend by specifying where it should be placed or for example I want to add InputField where the users can specify any name they want for each curve.