フィルターのクリア

How to make a plot content draggable (make a dynamic display)?

9 ビュー (過去 30 日間)
Csaba
Csaba 2016 年 3 月 25 日
回答済み: Csaba 2016 年 3 月 30 日
Let's have a simple line plot, let' say from x=0 to x=6000. I make an X scale window from i.e. x=100 up to x=200. Now I see part of the line plot. Is it possible to scroll (or wipe, I do not know which is the proper word) the plot in the window by dragging the line and move it left or right having the same window length (in this case the length is 100 x values) and showing continuously different areas of the line plot, i.e. from [100, 200] up to [5900, 6000]?
I know it is possible to change the xmin and xmax, but I want to make it mouse draggable.
How to do it in Matlab? Is it possible at all?
Csaba Bagyinka

採用された回答

Vidya Viswanathan
Vidya Viswanathan 2016 年 3 月 30 日
Hi Csaba,
I guess the option you are looking for is "Pan". In the figure window, you will notice a "Pan" option in the toolbar. This will help you scroll through different sections of the figure using the mouse. Please refer to the figure attached for the same. The "Pan" option is highlighted in Red color for your reference.
This option can also be controlled programmatically. Refer to the following documentation link for the details:
I hope this addresses your query.
Regards,
Vidya

その他の回答 (1 件)

Csaba
Csaba 2016 年 3 月 30 日
Thank you very much, this is it. I will try on my axes but most probably it will work.
I am always in a trouble when looking for a probably solved problem, how MATLAB might name it.
Thank again.
Csaba

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by