How to display values of axes after zooming in GUI at the moment of zooming
2 views (last 30 days)
Show older comments
Dear all, I'm struggling with zooming in in my GUI. I have an image and it's important for a user to be able to have the exact values of XLims after zooming in. I created an edit text field where this information is displayed ("Phase values"), but by far I only managed to have these values displayed after I press again on my Zoom In button.
My question is: how to code it to have these values in my text field at the moment of zooming ?
Here is a part of code which I use:
function ZoomBtn_Callback(hObject, eventdata, handles)
zoom(handles.Plot1_ax)
displayZoomXLims_txt(handles)
function displayZoomXLims_txt(handles)
XLims_values = sprintf(' %s ', num2str(handles.Plot1_ax.XLim(1)), num2str(handles.Plot1_ax.XLim(2)));
set(handles.XLims_txt, 'String', XLims_values);
Thank you in advance for any tips.
I attach an image how it looks like.
2 Comments
Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!