TGraph Fit Question

I’m trying to figure out how can I fit a TGraph and not include certain points. The array I use to create TGraph sometimes has zero values. Is there a way when fitting, to not take those points into account? Thanks.


Use a TGraphErrors and set the error to 0 for the point(s) that you want to exclude.


Will do. Thanks.