|
From: Petr M. <mi...@ph...> - 2008-07-04 08:33:50
|
> > 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 |