How to prevent zooming out past a specific extent in UIAxes?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
meghannmarie
il 29 Set 2020
Commentato: meghannmarie
il 13 Ott 2020
How do I prevent user from zooming out past an extent in App Designer? In this example I do not want the user to be able to manually zoom out past [180 180] on xaxis or [-90 90] on yaxis. I attached a picture to illustrate.
0 Commenti
Risposta accettata
Nitin Kapgate
il 12 Ott 2020
To limit the user from zooming out past an extent, you can add a custom zoom button (of 'push' button type) to the UIAxes.
In the custom callback for the custom Zoom button, query the current X and Y axis limits for the UIAxes object. If ther X and/or Y limits after zooming out go beyond ehat is required, set the X and Y limits of the UIAxes to the limits you desire.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Exploration 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!