|
From: sfeam <sf...@us...> - 2014-10-24 16:00:11
|
On Friday, 24 October 2014 10:24:50 AM pl...@pi... wrote: > In principal I agree that there is a need here. Firing up another > program just to use its saveAs dialogue seems suboptimal. It's quite painless in practice. Try this: set term png set output "|display png:-" plot $whatever # plot will appear on your screen. # if you like it and want to save it, then set output 'itsakeeper.png' replot I use the "display" command from ImageMagick, but if you prefer some other viewer you can substitute the display command as appropriate. Ethan > This need arises because the current output of , say the png terminal, > looks very different from the interactive version of graph. I long since > gave up trying to tune the two to be sufficiently similar and use the > clipboard function. > > One quick way to do this, which could be a first step without all the > dialogues would be to add a termopt : > eg. > termopt saveDir="/tmp/gnuplot" saveFormat="png" > > Default could be `pwd` . I usually save my plots in the same directory > that the data I'm working on is in. > > This could then be done with a single click from the interface, with > some default compression parameters for png. > > This would be most useful to me. I don't want to have to go through a > metric tonne of option dialogues like gimp does or do battle with the > standard file dialogues that require a lot of clicking if you want to go > anywhere other "my documents". > > The gimp solution is full of options if you want to tune everything and > has full saveAs ( sorry that's called 'export' now :? ) capability. > > What would be nice in gnuplot is a one line configuration command > entered from a console that allows a one click save afterwards. A simple > text entry for file name is all that is needed. Default to last used > name to overwrite or change. > > I agree that both the wx and qt libs would require a steep learning > curve for someone not familiar with them. > > The simplest way would be to also specify the file name in termopts. > This would make getting the nuts and bolts of a mechanism in place > relatively simple. > > > > If I had to do something like one console command : > termopt saveDir="/tmp/gnuplot" saveFormat="png" saveFile="test.png" > > then a single click interaction on the interactive terminal this would > be significant time saver for me and would provide a satisfactory > minimalistic solution. > > Error conditions could be reported directly to the console. > > Maybe this is something Philipp could achieve without spending weeks in > the bowels of library code. > > > > I don't see any sense in saving a graphic as PDF. Maybe someone could > say why people do this. AFAIK it justs adds a wrapper around the image > and bloats it. > > I can't think what situations would be able to display a PDF that cannot > display a png directly. > > > Regards. Peter. > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |