File Exchange

image thumbnail

Scrolling Plot Demo

version (1.74 KB) by Steven Lord
This is a demo demonstrating how to link an axis and a slider to enable scrolling of the axis.


Updated 07 May 2002

View License

To execute the demo, please type "scrollplotdemo" (without the quotes) at the MATLAB command prompt. The slider will scroll the axis limits over the range of the sample plot (a sine curve).

Cite As

Steven Lord (2021). Scrolling Plot Demo (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Ahmad Mayeli

Claire Wilson

This is great!
Is there a way to send the resulting graph to someone that doesn't have Matlab and still have the scrolling functionality?

Jan Lemeire

I easily made a function so that you can ass a scrollbar to any plot:
function addHorizontalScrollbarToPlot(dx, xmax)


Dominik Loeffler

could also include the scrollable y-axis, but is sufficient to show how it's done. Just what I'm looking for!

Julie Meng

Works alone, but doesn't work after insert to GUI. Anybody has similar experience?

Frank Atherton

Shame this example doesn't show the ability to vertically scroll data, reguards Frank

jeffery russell

Excellent use of Matlab.


MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!