|
From: j1n3l0 <nel...@gm...> - 2007-07-09 11:20:16
|
Hans-Bernhard Br=C3=B6ker wrote:
>=20
> Ethan Merritt wrote:
>> Do we have a utility routine somewhere that would convert=20
>> plot coordinates to graph or screen coordinates?
>=20
> No. axis.h:AXIS_MAP() and AXIS_MAPBACK transform from data=20
> ('first'/'second') coordinates to terminal coordinates and back.
> Going from terminal to 'screen' is trivial (just divide by term->xmax).
> Transforming to 'graph' from data coordinates is quite easy: it's a=20
> direct linear transformation using the axis_array[].min and .max
> values.
>=20
This thread is over a year old but I am in need of a solution. I am trying
to get the screen coordinates from my graph coordinates so I can generate a=
n
image map of my plots.
Is there a way to find out the values of {l|t|b|r}margins in pixels?
Currently the best I can do is use the "show margin" command, which just
tells me that the values are computed automatically, not what the values
are. If I knew the absolute values of these (in pixels) I could find the
coordinates of each point on my graph.
I think this would go some way to helping me solve my problem.
--=20
View this message in context: http://www.nabble.com/Is-there-a-way-of-conve=
rting-plot-coords-to-graph-coords--tf1832453.html#a11499886
Sent from the Gnuplot - Dev mailing list archive at Nabble.com.
|