From: jmeccles on
I've got function plotting about 30 different functions on a single figure. However I only want my legend to represent the last two plots. Can this be done?

And putting the last two functions being plotted at the start of my plot order does not work, because I need them to appear on top of the other plots.

Thanks in advance.
From: Walter Roberson on
jmeccles wrote:
> I've got function plotting about 30 different functions on a single
> figure. However I only want my legend to represent the last two plots.
> Can this be done?

If I recall correctly, you can pass an array of handles to legend(), and
it will only create legend entries for those handles.