Fitting 2D with Sub Ranges

Hi rooters,
The Fit is defined like this:
Int_t Fit(TF1* f1, Option_t* option, Option_t* goption, Axis_t xmin = 0, Axis_t xmax = 0)
When I try to fit a TH2D histogram, I can only define xmin and xmax, but cannot
define ymin,ymax.
like
hist->Fit(“f2”,"","“0,360); ok
hist->Fit(“f2”,”",""0,360,0,10); false.

Need I do something else?

Thanks

Define the function in the range where you want to fit and use option "R"
This works for 1-D,2-D,3-D.

Rene