[Top][All Lists]

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

Re: passing strings to GNUplot

From: John W. Eaton
Subject: Re: passing strings to GNUplot
Date: Wed, 2 Sep 1998 13:49:41 -0500 (CDT)

On 21-Aug-1998, Arnd Baecker <address@hidden> wrote:

| On Fri, 21 Aug 1998, Mario Storti wrote:
| [...]
| > First of all you have to quote the filename, and secondly you must use
| > eval since gnuplot cannot expand strings .
| > 
| > Use
| > 
| > octave> eval(["gset output \"" pfile "\""])
| > 
| And that's why I switched back to fudgit
| as interface to gnuplot... 
| Using fudgit one can easily define strings and
| use them in the so-called plotting mode, like for example
|   let InputFile="in.dat"
|   pm plot "${InputFile}" us 1:2
| The string is expanded before the whole line is passed
| to gnuplot.
| Wouldn't it be possible and convenient to have
| a similar mechanism in octave ?

It would probably be possible to have Octave gset command accept
variable names in all the "right" places, but it would not be easy
because it would require duplicating the complete syntax of gnuplot's
set command.  As it is now, Octave just has to grab the text following
the gset keyword and pass that directly to gnuplot, which is much

I'm not really interested in making this kind of change because it
would probably be quite a bit of work to maintain.


reply via email to

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