On Thursday 16 December 2004 10:40 am, Jacques Bouchard wrote:
> I wish to use gnuplot to open several x11 terminals, and to change the
> active terminal interactively (with a mouse click for example), in order
> to be able to rescale the plot with the mouse (right clicks).
Clicking on the plot window will make it "active" for the window
manager (KDE, gnome, whatever), but has no effect on gnuplot.
Gnuplot has only one active plot, the one produced by the most
recent plot or splot command.
> 1) Is there a way to change the active terminal with a command, without
> redefining all the plot? (I didn't find a word about this in the manual)
Probably, but it will be a window manager command rather than a
gnuplot command.
> 2) Is there a _simple_ way to patch the source in order to activate the
> clicked terminal? (I tried but didn't get the expected behaviour)
What do you mean "activate"? If you mean "I can use zoom and replot"
then this is not possible at all. It is a fundamental limitation of
gnuplot that only the information for the most recent plot is available.
> 3) I wish that the mouse coordinates in a _non-active_ x11 terminal were
> displayed according to the mouseformat defined for this terminal. Is it
> easy to patch?
This, however, should work in both Version 4.0 and the cvs version.
Are you saying that mousing does not work at all in the "old"
plot windows, or just that the output format changes somehow?
> 4) Is there a completely different way to obtain a similar behaviour
> with the current gnuplot?
Mousing is supposed to work. Zoom, replot, or other commands that
require access to the original data can only work on the current
(e.g. most recently drawn) plot window.
--
Ethan A Merritt merritt@...
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|