PARAFACPlot
Location: ..\cubatch\Model_PARAFAC\PARAFACPlot.m

function PARAFACPlot (FigHandle,MainFig);
Description:
Handles the plotting functions for the desired PARAFAC 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 FigHandle is 'default plot' and MainFig is a ModelOut structure the default plot (i.e. explained variation) is shown.
If the plotting function returns a cell the second element 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.
NB The double handle is necessary as the call may occur from two different windows (the main and the one created by Model_PARAFAC\PARAFACPlotControls).
Inputs:
FigHandle: handle to the figure with the ModelOut structure
MainFig: if not inserted is set to FigHandle. Otherwise it is the handle to the main figure.

Outputs:
None

Called by:
DefaultPlot, Model_PARAFAC\PARAFACActivatePlots, Model_PARAFAC\PARAFACPlotControls
NB. The call is made from the base work-space and not from Model_PARAFAC\PARAFACActivatePlots. The latter function defines PARAFACPlot(MainFig) as the callback function for the plotting menus.
Subroutines:
Internal: Nones
External: checkplotstruct, parafacdisplayinfo, getcvdata, checkaxes

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 11-Oct-2002 18:41:14
Contact: Giorgio Tomasi, gt@kvl.dk
References