Hello everyone , do you know if it is possibile to fill a th3f histogramm with points of different color?
thanks
one way:
{
gStyle->SetCanvasPreferGL(1);
TH3F *h3a = new TH3F("h3a","testa fitz",20,-4,4,20,-4,4,20,0,20);
for (Int_t i=0;i<10000;i++) {
Float_t x = gRandom->Gaus(0,1);
Float_t y = gRandom->Gaus(0,1);
Float_t z = gRandom->Gaus(10,4);
h3a->Fill(x,y,z);
}
TCanvas *myCanvas = new TCanvas("myCanvas","Title",800, 600);
h3a->Draw("glcol");
}
thanks