|
From: Ethan M. <merritt@u.washington.edu> - 2007-11-22 00:12:18
|
On Wednesday 21 November 2007 16:01, Allin Cottrell wrote: > > > Version 4.2.2 has quite a lot of this already your finger tips, > > by way of gnuplot-defined variables GPVAL_X_MIN etc. Adding > > GRAPH_XLEFT etc. shouldn't pose a major problem. > > Sorry, I don't really understand. There's no difficulty at all > calculating/retrieving this information inside gnuplot. The issue > is how to make it available to the outside world -- that is, to > another program that has called gnuplot to make a plot file, and > wants to know some internal properties of the file. I believe the suggestion was that one could achieve this by the following lines: set print "plot_coords.dat" print "x limits: ", GPVAL_X_MIN, GPVAL_X_MAX print "x2 limits: ", GPVAL_X2_MIN, GPVAL_X2_MAX print "y limits: ", GPVAL_Y_MIN, GPVAL_Y_MAX print "y2 limits: ", GPVAL_Y2_MIN, GPVAL_Y2_MAX print "graph limits: ", GPVAL_GRAPH_XMIN, GPVAL_GRAPH_XMAX ... and so on In other words, no need for a special terminal option. The existing print mechanism would allow flexibility as to file format and exactly what information is saved. -- Ethan A Merritt |