フィルターのクリア

how to fix the graph in app designer

3 ビュー (過去 30 日間)
piero
piero 2023 年 6 月 26 日
コメント済み: piero 2023 年 6 月 27 日
hi, can i fixed chart? (if I point the mouse on the figure I can drag it)

採用された回答

Jacob Mathew
Jacob Mathew 2023 年 6 月 27 日
編集済み: Jacob Mathew 2023 年 6 月 27 日
EDIT:
To make the graph static, we can use the following code:
disableDefaultInteractivity(app.UIAxes)
Hi piero,
I understand that you want to be able to pan the graph i.e move the axes.
When you add the app.UIaxes to the app designer window and run the app, hover over it to see the pan option as well as other options like zoom in and zoom out. Please see the below images for reference:
  3 件のコメント
Jacob Mathew
Jacob Mathew 2023 年 6 月 27 日
編集済み: Jacob Mathew 2023 年 6 月 27 日
Hi piero,
To achieve the opposite effect i.e to disable the ability to pan, zoom and other interactivity with the graph you can use the following function:
disableDefaultInteractivity(app.UIAxes)
This will make the graph static
piero
piero 2023 年 6 月 27 日
thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by