Statistics box with TTree->Draw()

I draw some TH2F histograms with:


I want to add some statistics via:


This does not work for TTree->Draw(). How do I add statistics?

I noticed that for 1D histograms the default option is already set to show the statistics display.


When drawing 2-d or 3-d scatter-plots
the stats box is not shown if the resulting histogram is the default “htemp”.
In this case the 2-d histogram is not filled at all. It is used only to draw the frame
for the TGraph object showing the scatter plot.
If instead of
you do
mytree->Draw(“vy:vx>>myhist”,“selection”," ")
you will see the stats box. Note the non-null
draw option.