[ROOT] Difference of behaviour between TH1 and TH2

From: Cyril Lachaud (lachaud@lpnhep.in2p3.fr)
Date: Tue Feb 06 2001 - 12:06:32 MET


Hello,

I've got a little problem which I do not understand.

I want to do the following:

fMyTree->Draw("fPM1HV:fPM2HV"); // It works, it gives a scatter plot
TH2* htemp2D = (TH2*)gROOT->FindObject("htemp"); // It works
htemp2D->Draw("lego"); // It does not work, gives me a flat histo...

On the other hand, for 1D histo it works :

fMyTree->Draw("fPM1HV");
TH1* htemp1D = (TH1*)gROOT->FindObject("htemp");
htemp1D->Draw("l");  // This time it works...

Why there is a difference between 1D and 2D histo ?

Thank you.

Cyril Lachaud



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET