help-octave
[Top][All Lists]
Advanced

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

Re: criptic phrasing in the manual


From: Luke M
Subject: Re: criptic phrasing in the manual
Date: Mon, 28 Feb 2011 09:25:55 -0800 (PST)

Oz Nahum wrote:
> 
> Hi Everyone,
> 
> I can't understand the following sentences in the manual, page 216 in the
> manual of v3.4:
> 
> ‘nm ’ If nm is a two digit integer and m is an integer in the range 1 to
> 6,
> m is
>       interpreted as the point style. This is only valid in combination
> with
> the
>       @ or -@ specifiers.
> 
> later there is a really weird (*imho*) example:
> 
> Here are some plot examples:
>       plot (x, y, "@12", x, y2, x, y3, "4", x, y4, "+")
> This command will plot y with points of type 2 (displayed as ‘+’) and
> color
> 1 (red),
> y2 with lines, y3 with lines of color 4 (magenta) and y4 with points
> displayed as ‘+’.
> 
> when I test this example with the following:
> 
> x=[-pi:pi/8:pi];
> y=sin(x);
> y2=cos(x);
> y3=x.^2;
> y4=x*3;
> plot (x, y, "@12", x, y2, x, y3, "4", x, y4, "+")
> 
> I get the following:
> sin(x)  - plotted as bright green +
> cos(x) - plotted as blue curve
> x.^2 - plotted as magenta curve
> x*3 is plotted as dark green +
> 
> Is it just me ? or is it happening with more people ? I tried octave 3.2
> from the Debian repositories.

Confirmed in 3.4.  I've never seen that "@12" usage before, so I can only
confirm that it is wrong.  A bit of tinkering and I found that changing the
first number doesn't change anything, and the second number is the color. 
Change it to "@11" and it comes out as red pluses.  Or "@x1" where x is any
number, for that matter.

For the user, though, I wouldn't worry rack your brain over this too much. 
If you want red pluses, use "r+".  I don't see any advantage to memorizing
or using this obscure syntax.

-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/criptic-phrasing-in-the-manual-tp3328069p3328362.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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