|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
new GPVAL_ variablesI'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_PLOT={0|1} GPVAL_SPLOT={0|1} GPVAL_VIEW_MAP={0|1} GPVAL_VIEW_ROT_X=double GPVAL_VIEW_ROT_Z=double GPVAL_VIEW_SCALE=double GPVAL_VIEW_SCALE_Z=double GPVAL_MULTIPLOT={0|1} Does somebody find use for (need) other variables? --- PM ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: new GPVAL_ variablesOn 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 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: new GPVAL_ variables> > 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 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: new GPVAL_ variables> > 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'. I've added to SF also a patch for GPVAL_TERMINALS, which contains names of all terminals compiled-in. I guess it might be useful as well. Example: gnuplot> print GPVAL_TERMINALS cgm corel dpu414 dumb dxf eepic emf emtex epslatex epson_180dpi epson_60dpi epson_lx800 fig gif gpic hp2623A hp2648 hp500c hpdj hpgl hpljii hppj imagen jpeg latex mf mif mp nec_cp6 okidata pbm pcl5 pdfcairo png pngcairo postscript pslatex pstex pstricks qms regis starc svg tandy_60dpi tek40xx tek410x texdraw tgif tkcanvas tpic unknown vttek wxt x11 xlib gnuplot> print strstrt(GPVAL_TERMINALS, " png ") 208 --- PM ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
| Free Forum Powered by Nabble | Forum Help |