How to plot "stdev of Y vs X"?

If we have two branches X and Y in a Tree t1. We can easily plot 2d histogram by using command “t1->Draw(“X:Y”);”
But if we want to plot the stddev of Y vs X in a 2D histogram? I know we can write a scripts to do that, just wondering if we have a simple way to do that. Thanks!


Please read tips for efficient and successful posting and posting code

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

If by “stddev of Y” you mean “sqrt(Y)”: t1->Draw("sqrt(Y) : X");

Maybe you would be interested in “Making a Profile histogram” and / or “Making a 2D Profile histogram” and / or “Making a candle sticks chart” in the TTree::Draw method description.