|
From: Daniel J S. <dan...@ie...> - 2011-04-01 02:10:24
|
On 03/31/2011 08:32 PM, Arun Persaud wrote:
> Hi
>
> not sure if this is a bug or not...
>
> the following works:
>
> gnuplot> set macros
> gnuplot> A="a=1"
> gnuplot> a=1.0
> gnuplot> A=sprintf("a=%f",2)
> gnuplot> @A
> gnuplot> print a
> 2.0
>
> but this doesn't:
>
> gnuplot> set macros
> gnuplot> A="a=1.111";a=1;A=sprintf("a=%f",2); @A;print a
> warning: A is not a string variable
That does seem inconsistent.
Did you try the "table" feature for saving results to a file? Look at
the third example of "random.dem" demo to see how a data file of random
numbers is created then used in a plot.
Dan
|