octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overhaul FLTK pan, rotate, zoom


From: Andreas Weber
Subject: Overhaul FLTK pan, rotate, zoom
Date: Sun, 27 Jul 2014 22:34:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

cset http://hg.savannah.gnu.org/hgweb/octave/rev/52e01aa1fe8b

Each axes now has its own properties for interactive GUI control of pan,
rotate3d and mouse_wheel_zoom. Now it's possible to have several figures
and set pan for the 2D plot in figure x and rotate3d for the 3D plot in
figure y. There are two new pan modes: "Pan x only" and "Pan y only".

The toolbar buttons "P" and "R" set pan and rotate3d for the last
clicked axes object or the object below the center of the canvas if none
was clicked yet.

Try this for example:

subplot (3, 1, 1);
sombrero ();
set (gca, "rotate3d", "on");
subplot (3, 1, 2);
plot (sin (0:0.05:10))
grid
set (gca, "pan", "xon")
subplot (3, 1, 3);
peaks ();

See how each plot behaves. Try also pan, rotate and zoom.

The legend axes can now be moved with the mouse. Try

sombrero(); legend("A sombrero plot")

and move the legend with the mouse around.

-- Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]