Code covered by the BSD License  

Highlights from
DRAGZOOM - Drag and zoom tool

image thumbnail

DRAGZOOM - Drag and zoom tool


Evgeny Pr (view profile)


04 Nov 2010 (Updated )

DRAGZOOM allows you to handy interactively manage the axes in figure.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

function test_2D
%TEST_2D Test 2D Plot with DRAGZOOM

x = -pi*4:0.1:pi*4;
y1 = sin(x);
y1n = y1 + 0.5 * randn(1, length(x));
y2 = cos(x);
y2n = y2 + 0.5 * randn(1, length(x));

hax = axes();
plot(hax, x, y1, '.-b', x, y1n, '*g', x, y2, '.-r', x, y2n, 'om');
legend('plot 1', 'plot 2', 'plot 3', 'plot 4')


Contact us