Borrar filtros
Borrar filtros

how to fix the graph in app designer

3 visualizaciones (últimos 30 días)
piero
piero el 26 de Jun. de 2023
Comentada: piero el 27 de Jun. de 2023
hi, can i fixed chart? (if I point the mouse on the figure I can drag it)

Respuesta aceptada

Jacob Mathew
Jacob Mathew el 27 de Jun. de 2023
Editada: Jacob Mathew el 27 de Jun. de 2023
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 comentarios
Jacob Mathew
Jacob Mathew el 27 de Jun. de 2023
Editada: Jacob Mathew el 27 de Jun. de 2023
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 el 27 de Jun. de 2023
thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by