|
From: Tino W. <ti...@wi...> - 2006-07-06 06:54:16
|
Ethan A Merritt schrieb:
> On Wednesday 05 July 2006 03:54 am, Tino Wildenhain wrote:
>
>>Petr Mikulik schrieb:
>>
>>>Since very recently, you can
>>> print GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN, GPVAL_Y_MAX
>>>and let your driving application to read it. See also 'help set print'
>>>and "bidirectional" examples on gnuplot web page.
>>
>>But this looks as if my application would have to
>>run gnuplot in popen() and not vice versa?
>
>
> No, you have that backwards.
> It is only possible to set environmental variables for
> your current process, or for a child process. Not for a parent.
well it wasnt me who got this backwards ;) I know I can
only set vars for current process (and therefore childs)
>
>>Currently I run a number of scripts in plot
>>where each script delivers data for a part graph.
>>
>>It would be nice to be able to access these values
>>from the script which runs inside
>>
>>plot "<script"
>
>
> 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
Ah, now thats interesting! I guess I fetch the current
sources and try again.
Regards
Tino
|