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
mytree->Draw(“vy:vx”,“selection”)
you do
mytree->Draw(“vy:vx>>myhist”,“selection”," ")
you will see the stats box. Note the non-null
draw option.