Hello,
Say I have a tree T with two branches b1 and b2:
How can I get
T->Draw("b1:b2")
to draw in a certain range. I’m creating lots of scatterplots and I would like their ranges to be the same for easy comparison.
Thanks,
Colorado
Hello,
Say I have a tree T with two branches b1 and b2:
How can I get
T->Draw("b1:b2")
to draw in a certain range. I’m creating lots of scatterplots and I would like their ranges to be the same for easy comparison.
Thanks,
Colorado
Did you try:T->Draw("b1:b2","b1<20 && b2<10");
.
Cheers,
Philippe.
[quote=“pcanal”]Did you try:T->Draw("b1:b2","b1<20 && b2<10");
.
Cheers,
Philippe.[/quote]
Yes, but if the range you want is say [0,100] and you have 3 points and 44,45,46, then it will draw the default range.
Try:T->Draw("b1:b2>>h2(100,0,100,100,0,100)","b1<20 && b2<10");
where the semantics is (nbinsx,xlow,xhigh,nbinsy,ylow,yhigh).
Philippe.