But I can take profilex() region X.
And then, I looked profilex() region Y taking near zero by automactic.
I want not y to take near zero.
How to work? In this picture, I want just to take X(2100~4000) Y(400~700) .
TH2::ProfileX creates automatically a TProfile, so you should not create
a TProfile before calling histp->ProfileX.
When calling TH2::ProfileX you can specify a range in Y, eg
histp->ProfileX("histp_pfx",frombiny,tobiny);
If you still have problems, please send the shortest possible running script
showing what you try to do (with teh data file for your TH2).
Do I understand correctly that you simply want to restrict the drawing range of the profile histogram? If yes, you can modify your function Fittt::draw_fit as follows: