[Top][All Lists]

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

Re: passing strings to GNUplot

From: Mario Storti
Subject: Re: passing strings to GNUplot
Date: Fri, 21 Aug 1998 18:04:08 -0300

>>>>> On Fri, 21 Aug 1998 14:13:41 -0600 (MDT), 
>>>>>      "David D. Clark" <address@hidden> said:

> Is there a way to pass a file name stored as a string to the gnuplot
> command "output"

> pfile=""
> gset output pfile

> this results in the error:

octave> pfile=""
octave> gset output pfile
gnuplot> set output pfile 
>                     ^
>          line 0: expecting filename

> any help would be appreciated

> Dave

First of all you have to quote the filename, and secondly you must use
eval since gnuplot cannot expand strings .


octave> eval(["gset output \"" pfile "\""])


reply via email to

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