help-octave
[Top][All Lists]
Advanced

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

plotting a spline


From: Stephen Eglen
Subject: plotting a spline
Date: Thu, 27 Apr 2000 18:03:34 +0100 (BST)

 > but can anyone tell me how to plot a set of points with a spline or
 > curve, 
 > rather than as a line?


Gnuplot can do smoothing via splines.  I think You'll need to
communicate directly with gnuplot using graw() rather than any of the
Octave plot() routines:

  d = rand(20,1);
  plot(d);  #raw version
  save -ascii '/tmp/d' d;
  graw("plot '/tmp/d'  smooth csplines\n")  #smoothed version


For more help on gnuplot smoothing, start gnuplot then do:

  gnuplot> help smooth

Stephen



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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