This image is TH2F plot in THist tutorial.
My question, I want to make 3D Spherical plot for this image.
I want to make It just seem like globe, In this case, spherical model made by flat image.
This image made by TH2F code and used COLZPOL draw function.
this is my code
{
TCanvas *c1 = new TCanvas("c1","c1",600,400);
TH2F *hcol1 = new TH2F("hcol1","Option COLor combined with POL",40,-4,4,40,-4,4);
Float_t px, py;
for (Int_t i = 0; i < 25000; i++) {
gRandom->Rannor(px,py);
hcol1->Fill(px,py);
}
gStyle->SetPalette(kBird);
hcol1->Draw("COLZPOL");
return c1;
}
I has changing function “COLZPOL” to “glSurf1pol”. but made plot was weird.
There are no center, no coordinate, no standard.
If i make 3D plot for this code, how can change the code.
best regard,
Z