MATLAB: How to correctly zoom axes inside an uipanel

axesMATLABuipanelzoom

When I execute this code ( an axe inside an uipanel ) :
h = uipanel;
axes('parent',h)
x = -4:0.1:4;
y = randn(10000,1);
hist(y,x)
and zoom in, the histogram can go outside the axes. How can I workaround this issue ?
Thanks
Aurélien (Win XP , R2012b)

Best Answer