|
From: Ethan M. <merritt@u.washington.edu> - 2008-07-02 22:06:01
|
On Wednesday 02 July 2008 14:51:44 Petr Mikulik wrote: > I've just updated > > Subject: [ gnuplot-Feature Requests-1939687 ] GPVAL_PLOT, _VIEW_X > https://sourceforge.net/tracker/?func=detail&atid=352055&aid=1939687&group_id=2055 > > which adds new GPVAL_ automatic variables: > > GPVAL_VIEW_ROT_X=double > GPVAL_VIEW_ROT_Z=double > GPVAL_VIEW_SCALE=double > GPVAL_VIEW_SCALE_Z=double These make sense to me. > GPVAL_MULTIPLOT={0|1} > GPVAL_VIEW_MAP={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. > 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? 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'. Better yet.... > 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? -- Ethan A Merritt |