Is there a way to restrain the TF2::Draw to a circular domain (in place of a rectangular one) ?
I haven’t seen such a feature that could be very usefull in some cases (e.g. the Mexican-Hat function 1-x^2-y^2+(x^2+y^2)^2) where the values is very large in the corners.
Thanks a lot, it gives very good results.
I just changed a bit the function to limit the value in the hidden region, since the z axis ranged is computed ignoring the TCutG:
TF2 f2 = new TF2(“TexMex”,"TMath::Min([0]-[1](x^2+y^2)+[2](x^2+y^2)^2,[3][0])",-range,range,-range,range);
f2->SetParameters(1,1.6,1,2);