Borrar filtros
Borrar filtros

Link Axes in App Designer

14 visualizaciones (últimos 30 días)
Mika
Mika el 29 de Abr. de 2019
Respondida: chrisw23 el 28 de Abr. de 2022
I am using App Designer 19a and would like to link between X axis of several uiAxes objects while zooming in and out.
I tried to create an event listener but 'PostSet' is not recognized buy uiAxes .
Any idea how can it be done?
Thank you.

Respuestas (2)

Jean-Baptiste Lanfrey
Jean-Baptiste Lanfrey el 13 de Abr. de 2022
You can use the linkaxes command like this:
plot(app.UIAxes,rand(100,1));
plot(app.UIAxes2,rand(100,1));
linkaxes([app.UIAxes app.UIAxes2],'x');

chrisw23
chrisw23 el 28 de Abr. de 2022
In AppDesigner I link the XLim property. It may be required to make the listener a private property of the app.
app.linkXLim = linkprop([app.UIAxes app.UIAxes2],'XLim')

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by