Here is the basic situation in a MATLAB session
>> figure
>> h=axes;
>> y=sin(0:2*pi/100:pi);
>> plot(y);
>> set(h,'xlim',[20 80]);
Now I want to be able to use the figure toolbar's Zoom In/Out buttons to reset the view so that the x-axes limits are the default, (ie [0 100]). However, they only allow one to zoom in and out of the current view. There must be an easy way to set the plot view in code that allows the user to zoom out again with Figure Toolber's zoom out button. Any ideas or suggestions?
Thanks