Hi
While trying to draw a frame like
TCanvas *c = new TCanvas("c", "Mass vs xsec plots for 13 TeV", 0, 0, 700,700);
c->SetTickx();
c->SetTicky();
c->SetGridx();
c->SetGridy();
TH1 *frame = new TH1F("frame", "", 1000, 1000, 2000);
frame->SetMinimum(0.001);
frame->SetMaximum(5);
frame->SetDirectory(0);
frame->SetStats(0);
frame->GetXaxis()->SetTitle("#tilde{g} mass (GeV)");
frame->GetXaxis()->SetTickLength(0.02);
frame->GetXaxis()->SetLabelSize(0.03);
frame->GetYaxis()->SetTitle("xsec (pb)");
frame->GetYaxis()->SetMoreLogLabels();
frame->GetYaxis()->SetLabelSize(0.03);
frame->Draw(" ");
c->SetLogy();
gr->SetLineColor(kBlue);
gr->Draw("AC");
I dont get to have the frame on the canvas, only the TGraph is plotted…
thanks
Alex