From: Ethan A M. <sf...@us...> - 2018-03-06 23:17:14
|
"save" writes out currently defined functions, variables, and most "set" options. The current terminal and the last plot command are included as comments. "save" does not write out information about current linetype definitions, mouse settings, or window properties. If gnuplot is re-run later, the linetypes and some window properties are taken from the current user's environment or initialization files, not from loading a saved plot file. But there is currently no way to save or restore mouse settings. Should there be a command "save mouse"? Should some or all mouse settings be included in the regular "save" output? As comments? I ran into this issue in developing a new demo illustrating forward and reverse coordinate transforms used for map projections. Having the mouse readout report latitude and longitude rather than screen position required adding a new option to define the inverse projection function. The new command is set mouse mouseformat function <inv-projection(x,y)> The demo works nicely in interactive mode but - the new mode is not supported by offline mousing (svg, canvas terminals) - the inverse projection function appears nowhere in the output from "save" because none of the "set mouse ..." properties are saved. Lack of saved mouse settings was already a problem if you wanted a custom mouse output format: set mouse mouseformat "x: %.4f X-UNITS y: %.2f Y-UNITS" Ethan |