void grlabels() { const char * mnames[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; TGraph * months = new TGraph(12); Double_t x = 5; Double_t y = 20; for (Int_t i=0; i<12; i++) { months->SetPoint(i,x,y); x += 5; y -= 2; } gStyle->SetMarkerStyle(0); gStyle->SetMarkerColor(1); gStyle->SetLineColor(0); months->Draw("AP"); TLatex lat; Double_t *xp = months->GetX(); Double_t *yp = months->GetY(); lat.SetTextAngle(45.); for (Int_t i=0; i<12; i++) { lat.DrawLatex(xp[i] - 4, yp[i], mnames[i]); } months->GetHistogram()->SetMaximum(30); }