%
%  Name:   scaleplot
%
%  Usage:  scaleplot
%
%
%  this m-file redraws the plot with new axis 
%  [fmin fmax mintoplot maxtoplot]
% 
%  Version SWD960702
%
%  Author(s): Phillip Cornwell, cornwell@lanl.gov
%	modified by Scott W. Doebling, doebling@lanl.gov
%
%  Institution: Los Alamos National Laboratory,
%               ESA-EA
%
%  Copyright (c) 1996, The Regents of the University
%       of California. (See top level of code for
%       full copyright statement.)

fminm=str2num(get(onHndlVector(4),'string'));
fmaxm=str2num(get(onHndlVector(6),'string'));
mintoplot=mintoplot;
maxtoplot=str2num(get(onHndlVector(9),'string'));
axis([fminm fmaxm mintoplot maxtoplot]);


numbins=(fmaxm-fminm)/df;

itemp = round((f1 - fminm)/df);

set(onHndlVector(2),'max',numbins,'val',itemp,'userdata',itemp)
