Hi,
Try this to exclude embedded graphs from fitting
doc –e P {
// Skip over any embedded graphs or Layout windows
if(page.IsEmbedded==0&&exist(%H)!=11)
{
nlbegin iy:=1 func:=Probability_pos; // user fit
nlpara; // this will open a dialog to monitor parameter values
// continue to run following scripts to finish the fitting
nlpara 1;
nlfit;
nlend 1;
}
};
~Chris