how to fix the graph in app designer

조회 수: 5 (최근 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 CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by