How to prevent an Axis from overtaking the MATLAB GUI when zooming

1 view (last 30 days)
Hello,
I am currently developing a GUI in MATLAB and am trying to use the preset zoom and rotate functions in the toolbar. Currently, I am working with a simple GUIDE, developed in the first exercise tutorial. My issue is that when zooming in, the plot starts to overtake the entire GUI. To solve the problem I have tried to create the axis as a child of a panel:
function uipanel1_CreateFcn(hObject, eventdata, handles)
% hObject handle to uipanel1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
handles.axes1 = axes('parent',hObject);
guidata(hObject,handles);
Hoping that the axis would be confined to the panel, but this is not the case.
I have not had any luck finding other solutions to this problem. I am using MATLAB R2013a. Have any of you encountered a similar problem? Is there a solution to this issue? Any help would be greatly appreciated.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!