|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-12 22:53:10
|
On Thursday 12 February 2009 13:46:04 Ben Abbott wrote:
>
> On Thursday, February 12, 2009, at 02:17PM, "Ethan Merritt" <merritt@u.washington.edu> wrote:
> >On Thursday 12 February 2009 10:37:25 Ben Abbott wrote:
> >> On Thursday, February 12, 2009, at 11:46AM, "Ethan A Merritt" <merritt@u.washington.edu> wrote:
> >> >On Thursday 12 February 2009, Ben Abbott wrote:
> >> >
> >> >> To properly interpret the "size" information I'll get from x11 using
> >> >> the GPVAL_TERM_WINDOWID, I'll need the value for GPVAL_TERM_VCHAR.
> >> >> Temporarily I can assume it is 13 pixels. However, as I'll be using
> >> >> the window size obtained from x11 to determine if the mouse was used
> >> >> to change its size, and subsequently update the figures' size property
> >> >> on the octave end, I'd like to make sure I get his correct.
> >> >
> >> >Use it for what?
> >>
> >> The window size reported by x11 includes the portion reporting the mouse coordinates,
> >> which is not part of the gnuplot canvas.
> >> So I'd like to have TERM_VCHAR so that I can subtract this from the window's height.
> >
> >Would you prefer a mousing mode that wrote the mouse coordinates without
> >extending the size on y? That would be a trivial change, and could be
> >toggled by the same hot-key that currently toggles the mouse coords on and off.
>
> hmmmm. I was not aware the mouse coordinates could be toogled on and off.
'm'
> What are the default hot-keys?
gnuplot> bind
2x<B1> print coordinates to clipboard using `clipboardformat`
(see keys '3', '4')
<B2> annotate the graph using `mouseformat` (see keys '1', '2')
or draw labels if `set mouse labels is on`
<Ctrl-B2> remove label close to pointer if `set mouse labels` is on
<B3> mark zoom region (only for 2d-plots and maps).
<B1-Motion> change view (rotation). Use <ctrl> to rotate the axes only.
<B2-Motion> change view (scaling). Use <ctrl> to scale the axes only.
<Shift-B2-Motion> vertical motion -- change xyplane
q * close this plot window
a `builtin-autoscale` (set autoscale keepfix; replot)
b `builtin-toggle-border`
e `builtin-replot`
g `builtin-toggle-grid`
h `builtin-help`
l `builtin-toggle-log` y logscale for plots, z and cb for splots
L `builtin-nearest-log` toggle logscale of axis nearest cursor
m `builtin-toggle-mouse`
r `builtin-toggle-ruler`
1 `builtin-decrement-mousemode`
2 `builtin-increment-mousemode`
3 `builtin-decrement-clipboardmode`
4 `builtin-increment-clipboardmode`
5 `builtin-toggle-polardistance`
6 `builtin-toggle-verbose`
7 `builtin-toggle-ratio`
n `builtin-zoom-next` go to next zoom in the zoom stack
p `builtin-zoom-previous` go to previous zoom in the zoom stack
u `builtin-unzoom`
Right `builtin-rotate-right` only for splots; <shift> increases amount
Up `builtin-rotate-up` only for splots; <shift> increases amount
Left `builtin-rotate-left` only for splots; <shift> increases amount
Down `builtin-rotate-down` only for splots; <shift> increases amount
Escape `builtin-cancel-zoom` cancel zoom region
* indicates this key is active from all plot windows
> If the mouse coordinates did not extend the y-size, the hassle of accounting for it would be more convenient.
>
> If the mouse coordinates continue to extend the y-size, then I suppose I'd need to know when the mouse coordinates are active, and by how many pixels the window has been extended (which is presently equal to GPVAV_TERM_VCHAR).
>
> Personally, I'd prefer that the mouse coordinates did not change the y size, but any solution that allow me to determine when the window is extended and by how much is ok.
>
> Ben
>
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|