Originally Posted by

**Moo** hello,

I'm sorry I know only Scilab, which is the free version of Matlab, so maybe it's very similar (especially the commands)

Suppose you have two plots

plot2d(s,N,4);

plot2d(s,N1,6);

4 and 6 are the colours.

legends(['Legend corresponding to colour 4','Legend corresponding to colour 6'],[4,6])

in scilab, you just have to click on the window where the graph is in order to place the legends. Dunno how it is in Matlab

Hmm this doesn't seem to work!

My code looks something like:

Code:

plot(z1,'*r')
plot(z2,'*y')
plot(z3,'*b')
plot(z4,'*g')

Where z1...z4 are the complex numbers to be plotted, * indicates that they be plotted as stars, and r/y/b/g denotes the colours.

So according to your example, my legend code should be:

Code:

legend(['Converges to 1','Converges to -1','Converges to i','Converges to -i'],['r','y','b','g'])

Yes?

This produces a legend with only 2 entries, as follows:

* Converges to 1 Converges to -1 Converges to i Converges to -i

* rybg

Not quite what I was after! =[