|
From: Petr M. <mi...@ph...> - 2008-07-03 07:11:54
|
> > GPVAL_MULTIPLOT={0|1}
>
> Maybe. But if multiplot mode is involved then all the other settings
> are probably valid only for the final plot in the set.
I intended it mainly for the case when a script fails inside set multiplot.
> > GPVAL_PLOT={0|1}
> > GPVAL_SPLOT={0|1}
>
> But I do not understand how one could use these. They are only
> true inside a plot, and inside the plot how can you query them?
For binding hotkeys. Left and right arrows could have different bindings in
plot and splot, e.g.
bind 'Left' if (GPVAL_PLOT) shift xrange left; replot; \
else builtin_rotate_left
> As an alternative suggestion, how about providing a string
> variable
> GPVAL_LAST_PLOT
> that points to the same string reported by "show plot"?
> One could inspect that string to see if the previous command
> was 'plot' or 'splot'.
Good idea, I'm adding it. Having GPVAL_{S}PLOT is necessary anyway, since
the plot command can start with "p ", "plo ", "sp ", ...
> > Does somebody find use for (need) other variables?
>
> There was a question on the newsgroup, I think, about querying the
> information from a "show" command from a script. For instance,
> I think there is no way for a script to check the name of the current
> output file. Could we have another string variable GP_VAL_SHOW
> that always contains the result of the last "show" command?
This would be nice. I guess it would need printing the "show output" into a
text buffer.
---
PM
|