2d histogram normalization

Dear rooters,
i want to normalize a 2d histo and with usual procedure

Double_t norm = 1/h->Integral()
h->Scale(norm)

i get the histo correctly normalized to 1.
If then i try to renormalize it to N with

h->Scale(N)

the integral is correct

h->Integral() = N

but the shape of the histo is changed.
Same result if i do directly

Double_t norm = N/h->Integral()
h->Scale(norm)

I’m probably making some stupid error but by now
i’m not able to see it !!!
Any suggest please ?

Many thanks,
bye,
Max

Could you send the shortest possible RUNNING script reproducing this problem?
and also please indicate your version of ROOT.

Rene

Hi Rene,
it seems only a plot visualization misleading: using “lego” option it’s clear that the shape it’s correctly reproduced.

Thanks in any case for your prompt replay !!

Bye,
Max.