Easily permits to add a scroll bar to a graph, at the same time is possible to zoom and pan the graph and the scroll bar adapts itself consequentially.
Moreover you can define a callback function to be called after a pan, scroll or zoom event on the graph in order to do what you need on the axis label or something else.
If you link two axes of different graphs panScrollZoom works well too.
Two example are supplied.
引用格式
Luca Chiaravalloti (2026). panScrollZoom (https://ww2.mathworks.cn/matlabcentral/fileexchange/26075-panscrollzoom), MATLAB Central File Exchange. 检索时间: .
致谢
参考作品: Scrolling Plot Demo
