function adj_view(ax,h)

% function adj_view(ax,h)
%
% This function is used in conjuction with FD3.  It is executed when a user
% moves one of the two slide bars to adjust the view area.  'H' is the handle
% of the slide bar and 'ax' is a flag to identify the slide bar.  'Ax' equals
% one for the x axis and any other value for the y axis.
%
% ACP

% Last update:  July 7, 1993
% Author:       Adrian C. Penisson

global FD3AXES FD3SCALE

value=get(h,'Value');

if ax==1
   set(FD3AXES,'Xlim',FD3SCALE*[value-22 value])
else
   set(FD3AXES,'Ylim',FD3SCALE*[value-16.5 value])
end
