Hi! I am fitting several groups of TGraphs and in order to express more conveniently, we assume there are three groups of TGraphs. Each of group contains 16 small canvases which are fitted by asym-Gauss function. Several canvases from the three groups of data can be successfully fitted and fitted curves have been drawn. The fitting of other canvases with points distributed in a straight line failed naturally. However, I have encountered the following problem:
The No.2 and No,10 canvas of the first group are fitted successfully, and the No.5 canvas of the second group is fitted successfully. However, when I record the fitting parameters and draw the fitting curve, the two successfully fitted canvases of the first group are also drawn in the corresponding small canvases of the second group, which are the second and tenth canvases. The corresponding small canvases of the second group (No.2 and No,10) can’t be fitted because of the linear points distribution. All of their (i.e. No.2 and No,10 of the first group, No.5 of the second group) fitting asym-Gauss function are also drawn on the third group.
Another strange thing is the points of No. 2 canvas of the third group can be fitted, the new fitting results have been correctly drawn on the canvas, covering the results from the first graph. But incorrect fitting results from the first two groups were drawn in the corresponding small canvas in third group.
Why Failure Fitting can’t give us parameters with the zero value? Instead, it read the fitting results of the previous group of corresponding positions. And the correct result after successful fitting covers the previous incorrect result.