2014-04-28 24 views
5

Ich bemerkte, dass ich den rechten Knopf der Maus verwenden kann, um ein Diagramm in Gnuplot, mit dem Terminal X11 zu vergrößern.Maus in gnuplot x11

Ich finde keine Dokumentation für die andere Mausgeste. Zum Beispiel wäre es in Ordnung, etwas zu verkleinern! Können Sie das vorschlagen?

Am besten,

Al.


EDIT: Offenbar ist die einzige Möglichkeit ist, mit der rechten Maustaste zum Vergrößern und verwenden Sie die Taste p zurück zu kommen, wie Christoph vorgeschlagen.

Antwort

7

Ja, die Dokumentation ist nicht sehr klar darüber. Informationen dazu finden Sie unter help mouse (geben Sie dies in das interaktive gnuplot-Terminal ein, oder lesen Sie den Abschnitt in der pdf-Datei). So können Sie beispielsweise mit dem Mausrad in x- und y-Richtung scrollen und zoomen (help mouse scrolling).

Um alle Gesten, Typ show bind, zu erhalten, die mir gibt (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

diese Hilfe wäre großartig! Leider ist "show bind" in meinem gnuplot nicht gültig. Ich kann nur die rechte Taste zum Vergrößern verwenden! Gnuplot Version ist "4.2 Patchlevel 6", Terminal X11 – altroware

+0

Es scheint, dass dies in der Version 4.4.3 eingeführt wurde, aus seiner NEWS-Datei: 'NEW Implementieren Sie Schwenken und Zoomen mit dem Mausrad.' – Christoph

+0

Aber ich kann immer noch mit der rechten heranzoomen Taste. Keine Möglichkeit zum Herauszoomen? – altroware

-1

Ich weiß, dass dies eine alte Post, aber ich habe die Probleme des Graphen wurden mit zu groß für das gnuplot-Fenster (Version 4.6 Patchlevel 6).

Die Lösung, die ich fand, war, das Scrollrad niederzuhalten und nach links oder rechts zu schwenken, um heraus- bzw. hineinzuzoomen.

Ich hoffe, es hilft.

+0

Dann machst du etwas anderes falsch. Nicht als Antwort auf diese Frage geeignet – Christoph