|
From: | Xin Dong |
Subject: | Re: Plot with different markers |
Date: | Thu, 18 Jun 2009 10:41:45 -0500 |
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;However, the result is that the markers are the same ("+") but the colors are different.
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;");
How can I set different markers?
Cheers,
Xin
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |