2D Erf Function

Hi!
I was trying to fit a 2D histogram with a 2D Erf function, but no fit was performed. To understand what I am making wrong I’ve tried to simply declare a TF2 function (the one I would like to obtain from the fit) and plot it. If I plot that in gnuplot,there is no problem. In ROOT a flat plane is always visualize instead.
Could anyon give a look please?

In attachment are both the ROOT (erf.C) and gnuplot (plot_erf.C) files.
Thank you,
regards,
Francesca
plot_erf.C (620 Bytes)
erf.C (1.18 KB)

“TFormula::SetParameters(…)” is NOT the same as “TFormula::SetParameter(…)”. See: http://root.cern.ch/root/html/TFormula.html

Thanks!

Francesca