Projection on defined histogram fixes binning for subsequent projections

Hello

when I project 2 variables from a TTree without imposing binning I get a plot like this:

image

tree->Draw(“yvar:xvar”,“”,“colz”)

If I impose a binning tree->Draw(“yvar:xvar>>htt(801,-0.5,800.5,26,219.5,245.5)”,“”,“colz”), the projection works as expected, and produces something like:

Forcedbinning

My problem is that now all the subsequent histograms I Draw use the binning of htt. It is like if htemp uses now the htt definition.

How can I recover back the flexibility of htemp, that looks for extremes and plots things with reasonable binning? I tried htemp->Reset() or deleting it without luck

Thank you


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided