Name

enablescrollingplot — Scrolling zoom selection tool

Calling Sequence

enablescrollingplot()
    enablescrollingplot(fid)

Parameters

fig
a handle on a figure. The default value is gcf().

Description

This function adds a menu named "Scroll" and a callback to the selected graphic window. After that if one makes a zoom on a graph and select the "Scroll/On" menu he will be able scroll the zoom selection using directional arrows.

If the "q" key is hit the original view of the graph is displayed.

The "Scroll/On", "Scroll/Off" menus can be used to toggle the scrolling mode.

Examples

    d=read(cardiovascularpath()+'demos/DATA/Fran_paced_3s',-1,3);
    plot(d(:,2))
    enablescrollingplot()
    // Now make zoom on a part of the graph, select "Scroll/On" and play with the arrow keys.
    

Authors

Serge Steer, INRIA