function pdffwindow
%
%  Name:   pdffwindow
%
%  Usage:  pdffwindow
%
%  Starts the pdf fitting analysis window
% 

%  Version SWD970807
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This matlab source code was originally     %
% developed as part of "DIAMOND" at          %
% Los Alamos National Laboratory. It may     %
% be copied, modified, and distributed in    %
% any form, provided:                        %
%  a) This notice accompanies the files and  %
%     appears near the top of all source     %
%     code files.                            %
%  b) No payment or commercial services are  %
%     received in exchange for the code.     %
%                                            %
% Original copyright is reserved by the      %
% Regents of the University of California,   %
% in addition to Scott W. Doebling, Phillip  %
% J. Cornwell, Erik G. Straser, and Charles  %
% R. Farrar.                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

global HANDLES DISPLAY DATA indsvec iaxesvec inds iaxes
%

%  Show and hide the appropriate controls

hideallbtns
showall(HANDLES.hpdff)


%  Initialize global variables

iaxes = 1;

%  Initialize axes

DISPLAY{1}.haxes = HANDLES.hpdff(2);
DISPLAY{2}.haxes = HANDLES.hpdff(3);

%  Set the datafile number

DISPLAY{1}.idatafile{1} = 1;

%  Set user selectable parameters

DISPLAY{1}.iresp{1} = 1;
DISPLAY{1}.iref{1}  = 1;
DISPLAY{1}.iavg{1}  = 1;
DISPLAY{2}.iylog    = 1;

set(HANDLES.hpdff(5),'string',num2str(DISPLAY{1}.iresp{1}))
set(HANDLES.hpdff(7),'string',num2str(DISPLAY{1}.iref{1}))
set(HANDLES.hpdff(8),'value',DISPLAY{2}.iylog)
set(HANDLES.hpdff(10),'string',num2str(DISPLAY{1}.iavg{1}))

%  Draw initial PDFF plot

pdffplot

return