MatLab plots with legends.
Is there any way to add a legend to a diagram such that the information int he legend is actually independent of the information on the graph? Such that the information in the legend describes a property of a group of objects, rather than a specific object?
For example, I have written a program which takes numerous complex numbers, z1, z2, z3, z4...zn and inserts them into an iterative method whereby they converge to either 1, -1, i, -i. I have then plotted each point, z1...zn, as a star.
However, each point is colour coded according to which number it converges to in the iteration. So I may have 3 points that converge to 1, and hence are plotted in green, and 2 points that converge to i, and hence are plotted in red. So what I want my legend to show is
* converges to 1
* converges to -1
* converges to i
* converges to -i
So as you see, the legend refers not to specific points, but a collection of points. And I want my legend to show, for example, the 4th option, even if no number in the iteration ACTUALLY converge to -i.
So how do I do that?!