|
From: Allin C. <cot...@wf...> - 2007-11-22 00:32:08
|
On Wed, 21 Nov 2007, Ethan Merritt wrote: > 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 where GPVAL_GRAPH_XMIN and friends are still to be added? OK, this looks promising. Allin Cottrell |