|
From: Ethan M. <merritt@u.washington.edu> - 2006-06-22 19:50:17
|
Do we have a utility routine somewhere that would convert
plot coordinates to graph or screen coordinates?
What I want to do is take a mouse-click location,
which is reported in plot coords, and keep track of
where that was on the screen.
The closest I can find is this routine in gnuplot_x11:
/* Convert X-window mouse coords to coordinate system of plot axes */
static void
mouse_to_coords(plot_struct *plot, XEvent *event,
double *x, double *y, double *x2, double *y2)
but it's the wrong direction, and not visible in the core code
anyhow.
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA
|