Candle plots not working

Hi,

I’m trying to make the plot show at http://root.cern.ch/root/html534/THistPainter.html#HP140, by copying the script shown for the candle plot, but the result I get looks nothing like the plot show at the URL. Specifically, these are the commands I use

TH2F *hcandle = new TH2F("hcandle","Option CANDLE example ",40,-4,4,40,-20,20);
Float_t px, py;
for (Int_t i = 0; i < 25000; i++) {
  gRandom->Rannor(px,py);
  hcandle->Fill(px,5*py);
}
hcandle->SetMarkerSize(0.5);
hcandle->Draw("CANDLE");

This is the candle plot I produce:


What’s going wrong?

Note: you need ROOT v5-34-15 or newer.

OK that solves it. I’m using 5.34/05. Thanks.