Hi
I just have a question about the 2d histogram because I tried to plot two histograms with option LEGO in the same canvas but with diferent colors but it did not give me different colors for each histogram(just one color). And here is the code that I used
[code]TH2F *etaphi = new TH2F("","",100,-3,3,100,-2,2);
etaphi->SetFillColor(kBlue);
TH2F *etaphijet = new TH2F(""," ",100,-3,3,100,-2,2);
etaphijet->SetFillColor(kRed);
Thank you so much for helping
But I need the highest value on the first histogram (etaphijet) is 520 and on the second one is 110 and I did it as shown in the code below and the highest value on the first histogram worked fine but on the second one didn’t work, so could you please help me with this
[code]{
TH2F *etaphi = new TH2F("","",100,-3,3,100,-2,2);
etaphi->SetFillColor(kBlue);
etaphi->SetMaximum(110);
TH2F *etaphijet = new TH2F(""," ",100,-3,3,100,-2,2);
etaphijet->SetFillColor(kRed);
etaphijet->SetMaximum(520);
etaphi->Fill(0.,0.);
etaphijet->Fill(0.,1.);