help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plot with different markers


From: James Sherman Jr.
Subject: Re: Plot with different markers
Date: Tue, 16 Jun 2009 15:20:25 -0400

I'm unfamiliar with that particular syntax, but I always use something like

semilogx(x, y, "bo-")

where b denotes the color (can be stuff like b(lue), r(ed), y(ellow), k(for black), there are others but I can't remember them off the top of my head).

The second character is the marker, can be ones like x, o, +, *, ., etc.

The third is the type of line connecting the markers, - for solid, -. for dash-dot, : for dots, -- for dotted.

Hope this helps.

On Tue, Jun 16, 2009 at 1:44 PM, Xin Dong <address@hidden> wrote:
Hi all,

I wanna plot several data sets on the same figure and I want the marker for each line is different. According the manual, I write this:
 figure;
semilogx(freq, d(1, :), "address@hidden;\theta_s=1;");
hold on;
semilogx(freq, d(2, :), "address@hidden;\theta_s=5;");
hold on;
semilogx(freq, d(3, :), "address@hidden;\theta_s=10;");
hold on;
semilogx(freq, d(4, :), "address@hidden;\theta_s=20;");
However, the result is that the markers are the same ("+") but the colors are different.
How can I set different markers?

Cheers,
Xin

_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]