{ //reading the input file TTree *T = new TTree("ntuple","data from ascii file"); Long64_t nlines = T->ReadFile("input.dat","x:y:sect:dist"); //create a canvas TCanvas *fig1 = new TCanvas("fig1","Pareto Zone"); //create both pads and orientate them int phi=10; int theta=30; TPad *pad1 = new TPad("pad1","",0,0,1,1); pad1->SetPhi(phi); pad1->SetTheta(theta); TPad *pad2 = new TPad("pad2","",0,0,1,1); pad2->SetPhi(phi); pad2->SetTheta(theta); pad2->SetFillStyle(4000); //will be transparent //First plot pad1->Draw(); pad1->cd(); T->SetMarkerColor(2); T->Draw("sect:y:x"); //Get the TH3 to change Z axis color TH3F *htemp = (TH3F*)gPad->GetPrimitive("htemp"); htemp->SetTitle(""); htemp->GetZaxis()->SetLabelColor(2); htemp->GetZaxis()->SetAxisColor(2); htemp->GetZaxis()->SetTitleColor(2); //Second plot fig1->cd(); pad2->Draw(); pad2->cd(); T->SetMarkerColor(4); T->Draw("dist:y:x"); //Get the TH3 to change Z axis color htemp = (TH3F*)gPad->GetPrimitive("htemp"); htemp->SetTitle(""); htemp->GetZaxis()->SetLabelColor(4); htemp->GetZaxis()->SetAxisColor(4); htemp->GetZaxis()->SetTitleColor(4); }