nPLS1Plot
Location: ..\cubatch\Model_nPLS1\nPLS1Plot.m
function
nPLS1Plot (FigHandle,MainFig);
Description:
Handles the plotting functions for the desired (n)PLS1 model.
It checks the PlotStruct structure and the position of the plotting axes within
the figure.
The plotting functions are called via feval and the name of the function to call
is stored in the menu's tag.
If the plotting function returns a non-empty ModelOut structure, the latter is saved in the
"main" ModelOut (i.e. the one stored
in the main window as
'Results').
This feature allows saving the statistics when they are computed.
If
FigHandle is
'default plot'
and MainFig
is a ModelOut structure the default plot (i.e. the Y
explained variation of the first selected Y-variable, in general, or the X
explained variation, after projection) is shown.
NB
The double handle is necessary as the call may occur from two different windows
(the main and the one created by
Model_nPLS1\nPLS1PlotControls).
Inputs:
FigHandle: handle to the figure with the
ModelOut structure or
'defaultplot'
MainFig: if not inserted is set to
FigHandle. Otherwise it is the
handle to the main figure, or, in the default plot case it is a ModelOut
structure).
Outputs:
None
Called by:
DefaultPlot,
Model_nPLS1\nPLS1ActivatePlots,
Model_nPLS1\nPLS1PlotControls
NB. The call is made from the base work-space and not
from
Model_nPLS1\nPLS1ActivatePlots.
The latter function defines nPLS1Plot(MainFig) as the callback function
for the plotting menus.
Subroutines:
Internal: None
External:
checkaxes,
checkplotstruct,
getcvdata,
npls1displayinfo,
resizecubatch
Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 15-Oct-2002 12:17:44
Contact: Giorgio Tomasi, gt@kvl.dk
References