Display the exact selected area by zooming in on a surface/image
Hi,
I have an uiaxes on a GUI (appdesigner) on which I draw a 2D surface with axis equal. When I zoom in by selecting an area, I’d like the area displayed to correspond exactly to the one selected (no more, no less). I had this behavior with MATLAB 2019/2020. However, since upgrading to version 2024, I’ve been able to zoom in, but the initial width/length aspect ratio of the displayed surface remains unchanged. As the background isn’t clickable, elongated surfaces are very difficult to manage.
Here’s an illustration and an attached .fig. I’ve tried changing the daspect and DataAspectRatioMode, but couldn’t get it right.
If anyone has a solution, I’d love to hear from you!
Thanks in advance.Hi,
I have an uiaxes on a GUI (appdesigner) on which I draw a 2D surface with axis equal. When I zoom in by selecting an area, I’d like the area displayed to correspond exactly to the one selected (no more, no less). I had this behavior with MATLAB 2019/2020. However, since upgrading to version 2024, I’ve been able to zoom in, but the initial width/length aspect ratio of the displayed surface remains unchanged. As the background isn’t clickable, elongated surfaces are very difficult to manage.
Here’s an illustration and an attached .fig. I’ve tried changing the daspect and DataAspectRatioMode, but couldn’t get it right.
If anyone has a solution, I’d love to hear from you!
Thanks in advance. Hi,
I have an uiaxes on a GUI (appdesigner) on which I draw a 2D surface with axis equal. When I zoom in by selecting an area, I’d like the area displayed to correspond exactly to the one selected (no more, no less). I had this behavior with MATLAB 2019/2020. However, since upgrading to version 2024, I’ve been able to zoom in, but the initial width/length aspect ratio of the displayed surface remains unchanged. As the background isn’t clickable, elongated surfaces are very difficult to manage.
Here’s an illustration and an attached .fig. I’ve tried changing the daspect and DataAspectRatioMode, but couldn’t get it right.
If anyone has a solution, I’d love to hear from you!
Thanks in advance. aspect ratio, zoom, uiaxes, axes, surface, daspect, aspect, image MATLAB Answers — New Questions