TTree::Draw() - using a histogram to control binning

I am using root v5.34/01 on Windows

I use TTree::Draw(“y:x>>h(,,,,,)”). The reference guide for TTree::Draw() (root.cern.ch/root/html534/TTree.html#TTree:Draw) says

My question is: How do I restore the binning to be automatic?

Here’s an example of what I am talking about: First plot made with Draw(“v:z”)



Second plot made with Draw(“vmbmon-vmfmon:z>>h(10,0,3000000,10,1950,2150)”)


Third plot made same as first: Draw(“v:z”)

  • see how it gets clipped? How do I undo the effect of the Draw() w/ histo project?

Thanks
Ed

Hi Ed,

We’ll investigate and get back to you as soon as possible.

Thank you,

Enric

If you like what the automatic binning does, simply do not use the histogram definition and get the created histogram in “htemp” after the plot.