|
From: ZoltánVörös <zv...@gm...> - 2009-12-09 12:31:49
|
Thomas Sefzick <t.sefzick <at> fz-juelich.de> writes: > > > the variables > GPVAL_TERM_XMIN, GPVAL_TERM_XMAX, > GPVAL_TERM_YMIN, GPVAL_TERM_YMAX > give the corners of the graph in pixels. > (you need version 4.4) > > together with the information in > GPVAL_X_MIN, GPVAL_X_MAX, ... > it should be easy to translate data point coordinates into > pixels and vice-versa. Yes, this is clear, but what you state above is not correct: if I do this plot sin(x) on a wxt terminal, then I get this GPVAL_TERM_XMIN = 1215 GPVAL_TERM_XMAX = 12394 GPVAL_TERM_YMIN = 678 GPVAL_TERM_YMAX = 7355 while my window is only 640 X 380 pixels. I think, the number of pixels is multiplied by 20, and that gives GPVAL_TERM_XMIN and the like. But is this 20 a universal number? If I change to a different terminal, can I still trust my numbers? Cheers, Zoltán |