|
From: Tino W. <ti...@wi...> - 2006-07-08 22:16:18
|
Ethan A Merritt wrote:
> On Saturday 08 July 2006 03:03 pm, Tino Wildenhain wrote:
>> Ethan A Merritt wrote:
>> ...
>>> Right. That you can do, for instance by passing the values as
>>> script parameters:
>>>
>>> command1 = sprintf("< scriptname %g %g",GPVAL_X_MIN,GPVAL_X_MAX)
>>> plot command1 with lines
>> Well, this works with the current checkout, but not in a way to
>> fix the problem ;) After the sprintf of course the values
>> are fixed in the string and are not recalculated when you
>> select another area to zoom with the mouse.
>
> So put it in the plot command directly.
> That way it will get re-evaluated every time:
uh. can I? How?
>> So a mapping to the environment would be the most flexible
>> way to make all this possible I guess...
>
> That would suffer the same problem. You would have to
> re-export the environmental variable prior to doing each
> replot.
Just before popen() would make most sense, right? -
or alternatively with every change to a variable
(a bit more code work, but probably not - since
there seems to be a central mapping and interface
for setting/reading vars)
Regards
Tino
|