I am creating a GUI in MATLAB using GUIDE. I have several axes, and in one of them I want to draw a box. My problem is that after drawing the boxplot, the axis size changes and it overlaps with some of my other shapes.
To replicate this problem, create a .fig file using a GUIDE containing two axes: axes1 and axes2 , as shown in the figure:
.
Then in OpeningFcn add the following lines:
Z = normrnd(1,3,[100,1]); plot(handles.axes1, Z); boxplot(handles.axes2,Z)
Then lauch GUI. I see the following:

As you can see, the two axes overlap. I tried changing the properties of the window field, but no luck.
I am using MATLAB 7.10 (R2010a) and Kubuntu 12.10.
Digna source share