2014-04-28 16 views
5

Ho notato che posso usare il tasto destro del mouse per ingrandire un grafico in gnuplot, con il terminale X11.mouse in gnuplot x11

Non trovo documentazione per l'altro gesto del mouse. Ad esempio, sarebbe meglio fare qualche zoom indietro! Potresti suggerire questo?

Best,

Al.


EDIT: A quanto pare, l'unica possibilità è quella di ingrandire con il tasto destro del mouse e utilizzare il tasto p per tornare, come suggerito Christoph.

risposta

7

Sì, la documentazione non è molto chiara su questo. È possibile trovare alcune informazioni al riguardo sotto help mouse (digitare questo nel terminale gnuplot interattivo o consultare la sezione Mouse nel pdf). Ad esempio, è possibile utilizzare la rotella del mouse per lo scorrimento in direzione xe y come lo zoom (help mouse scrolling).

per ottenere tutti i gesti, tipo show bind, che mi dà (Linux, 4.6.4):

gnuplot> show 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 
<wheel-up>   scroll up (in +Y direction). 
<wheel-down>  scroll down. 
<shift-wheel-up> scroll left (in -X direction). 
<shift-wheel-down> scroll right. 
<control-wheel-up> zoom in toward the center of the plot. 
<control-wheel-down> zoom out. 
<shift-control-wheel-up> zoom in only the X axis. 
<shift-control-wheel-down> zoom out only the X axis. 

Space   raise gnuplot console window 
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-previous-mouse-format` 
2    `builtin-next-mouse-format` 
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 
+0

questo aiuto sarebbe fantastico! Sfortunatamente "show bind" non è valido nel mio gnuplot. Sono solo in grado di usare il tasto destro per ingrandire! La versione di Gnuplot è "4.2 patchlevel 6", terminale x11 – altroware

+0

Sembra che questo sia stato introdotto nella versione 4.4.3, dal suo file NEWS: 'NOVITÀ Implementa pan e zoom tramite rotella del mouse. – Christoph

+0

Ma posso ancora ingrandire usando la destra pulsante. Non c'è modo di rimpicciolire? – altroware

-1

So che questo è un vecchio post, ma ho avuto il problema del grafico essere troppo grande per la finestra gnuplot (versione 4.6 patchlevel 6).

La soluzione che ho trovato era di tenere premuta la rotella di scorrimento e scorrere verso sinistra o verso destra per ridurre e in rispettivamente.

Spero che aiuti.

+0

Allora stai facendo qualcos'altro sbagliato. Non adatto come risposta a questa domanda – Christoph