[GUIDE] How to create scroll bar that moves the whole graph sideways?

39 ビュー (過去 30 日間)
Raul
Raul 2017 年 7 月 6 日
回答済み: Bjorn Gustavsson 2017 年 7 月 6 日
I am creating a GUI with GUIDE, and need to create a scroll bar that scrolls the graph horizontally. For clarity purposes, I have plotted the entire graph, but set the xlim to about a fifth of my whole data. Thus, the entire plot exists, and is easily navigated through using the "pan" tool. However, I would like to create a scrollbar so that I can only scroll sideways, leaving my y-axis intact.
After a thorough search, I'm starting to wonder if this possible. I am familiar with crating panes, but that does not allow me to scroll through the graph itself.

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2017 年 7 月 6 日
If you look at the file exchange there seems to be several different submissions that does a range of different scrolling implementations:
Chances are you'll find at least one useful.
HTH

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by