help-octave
[Top][All Lists]
Advanced

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

Re: Plot with different markers


From: Xin Dong
Subject: Re: Plot with different markers
Date: Thu, 18 Jun 2009 10:41:45 -0500

It works, thanks a lot!

I have another question. How many different markers Octave has? I read the manual, it lists +, x, o, *, ^, but I need at least 6 ones. Can we add other ones?

Thanks,
Xin

On Tue, Jun 16, 2009 at 2:20 PM, James Sherman Jr. <address@hidden> wrote:
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]