[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plot3 plots surface rather than line
From: |
Henry F. Mollet |
Subject: |
Re: plot3 plots surface rather than line |
Date: |
Wed, 28 Sep 2005 10:58:45 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
I've tested the example for plot3 using Octave 2.1.49 and I get the helix as
expected from ";helix;".
z = [0:0.05:5];
plot3(cos(2*pi*z), sin(2*pi*z), z, ";helix;");
For results in 2.1.71 see attached (24kb PDF) which presumably must be a
"carpet" plot.
Henry
on 9/28/05 8:30 AM, Przemek Klosowski at address@hidden wrote:
> The help for plot3 says:
>
> usage: plot3 (x, y, z)
> ...
> If all arguments are vectors of the same length, a single line
> is drawn in three space.
>
> but on my 2.1.71 it does something else: it treats the x,y,z vectors
> as values of Z for three lines in the X-Y plane; in other words, it's
> plot3(z1,z2,z3), showing a 3-by-length(z) carpet plot.
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
plot3example.pdf
Description: Binary data