help-octave
[Top][All Lists]
Advanced

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

Re: Cannot plot in gnuplot what works in Octave


From: Dean Allen Provins
Subject: Re: Cannot plot in gnuplot what works in Octave
Date: Thu, 25 Aug 2005 12:45:59 -0600
User-agent: Mutt/1.5.9i

On Thu, Aug 25, 2005 at 10:32:09AM -0700, Henry F. Mollet wrote:
> Thank you and Dimitri.
> 
> Now a question regarding data files in gnuplot vs Octave. I can load in
> gnuplot a file 'start.par' with first statement m1 = - 0.001 but I cannot
> load a file 'lcdemo.dat' which has 5 column vectors with data but no handles
> (if this is the correct expression) for each column. I can plot the data in
> the file 'lcdemo.dat' without having to load the data file first and default
> is to use 1st col for x and 2nd col for y.
> 
> Can I load in gnuplot a vector/matrix with more than 1 element in gnuplot or
> would I have to use a statement for each element (e.g. a11 = 1.5, a12 = 2.0
> etc.)?

Gnuplot expects commands, not data in "load" files.  See "info gnuplot",
"node load" for more information.

Regards,

Dean

> Henry
> 
> 
> [/usr/local/share/gnuplot/demo] -bash-2.05b 504$ gnuplot
>         G N U P L O T
>         Version 4.0 patchlevel 0
> Terminal type set to 'aqua'
> gnuplot> show variable
>         Variables:
>         pi = 3.14159265358979
> 
> gnuplot> load 'start.par'
> gnuplot> show variables
>         Variables:
>         pi = 3.14159265358979
>         ml = -0.0005
> cut
> gnuplot> load 'lcdemo.dat'
> 
> gnuplot> 39.471 1.03307     1.0         0.98765     0.010
>          ^
>          "lcdemo.dat", line 15: invalid command
> 
> gnuplot> plot 'lcdemo.dat'
> gnuplot> 
> 
> 
> 
> on 8/23/05 5:27 PM, Geordie McBain at address@hidden
> wrote:
> 
> > Hello.  Use the old Fortran style double-star for exponentiation in
> > gnuplot:
> > 
>

-- 
                           Dean Provins, P. Geoph.
                            50.95033N, 114.03791E
                           address@hidden
                         address@hidden
                  KeyID at at pgpkeys.mit.edu:11371: 0x9643AE65
          Fingerprint: 9B79 75FB 5C2B 22D0 6C8C 5A87 D579 9BE5 9643 AE65



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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