Link Axes in App Designer
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposte (2)
Jean-Baptiste Lanfrey
il 13 Apr 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');
0 Commenti
chrisw23
il 28 Apr 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')
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!