|
From: Ethan A M. <sf...@us...> - 2014-10-24 17:20:13
|
On Friday, 24 October, 2014 09:10:51 Petr Mikulik wrote: > > I think it would be wonderful if both current > > interactive terminals (Qt and wxt) would allow > > the user to "save" the current graph to file in > > a range of file formats (basically PNG and PDF). > > This reminds me: there is an undocumented command for printing > the current graph (i.e. for showing a Print(er) dialog): > screendump > This, however, works for the "windows" terminal only, otherwise > gnuplot says > screendump not implemented > > Currently: > - Windows terminal has icons to: > - print the graph > - save it as EMF > - OS/2 pm terminal has menu item for: > - print the graph > - Qt has a tiny arrow with a menu for: > - print the graph > - export the graph to png, svg, image > > Some ideas: > - The screendump command could work for Qt as well. How would this be different from the existing qt->png output? > - This command should be documented. > - Cannot wxt have the same export/print icons as Qt? The Qt library provides conversion routines for png, pdf, and svg. I am not so familiar with the wxt library, but so far as I can see from the available routines the closest equivalent would end up doing exactly the same thing as "set term pngcairo; replot" for png output. Same for pdf ouput. We don't have a svgcairo terminal, however. > - Generalize it as "screendump <terminal name>"? Wouldn't that be "screendump 'filename'"? Ethan |