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).
Steven Lord (2021). Scrolling Plot Demo (https://www.mathworks.com/matlabcentral/fileexchange/1670-scrolling-plot-demo), MATLAB Central File Exchange. Retrieved .
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?
I easily made a function so that you can ass a scrollbar to any plot:
function addHorizontalScrollbarToPlot(dx, xmax)
could also include the scrollable y-axis, but is sufficient to show how it's done. Just what I'm looking for!
Works alone, but doesn't work after insert to GUI. Anybody has similar experience?
Shame this example doesn't show the ability to vertically scroll data, reguards Frank
Excellent use of Matlab.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!