Re: Draw("col") doesn't work

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 24 Aug 2009 12:27:01 +0200


You filled the bins without setting the number of entries. Add the line mcube_ics_isotropic00->SetEntries(1);

and you will see your plot

Rene Brun

OKUMURA, Akira wrote:
> Hello ROOTers,
>
> I cannot draw some TH2Ds in my current analysis using the "col"
> option. I have uploaded one of the TH2Ds at
> http://www-utheal.phys.s.u-tokyo.ac.jp/~oxon/tmp/test.root
>
> Would you check the file, please? Which parameter is inappropriate?
>
> [oxon_at_kusu ~]$ root -n
> root [0] TFile* f = new TFile("test.root")
> root [1] f->ls()
> TFile** test.root
> TFile* test.root
> OBJ: TH2D mcube_ics_isotropic00 : 0 at: 0x201b800
> KEY: TH2D mcube_ics_isotropic00;1
> root [2] mcube_ics_isotropic00->Draw("col") // <= only X/Y axes are drawn
> <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> root [3] mcube_ics_isotropic00->Draw("surf3") // works as expected
>
> I am using ROOT 5.24.00 on OS X Leopard and Linux.
>
> Regards,
>
> OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
>
Received on Mon Aug 24 2009 - 12:26:30 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 24 2009 - 17:50:02 CEST