void FillStyleIssue () { gStyle->SetLegendFont(42); gStyle->SetLegendBorderSize(0); gStyle->SetFillStyle(0);//is different for vers<=32 & vers>=34 TF1 *f[6]; for(int i=0; i<6; i++) { f[i] = new TF1(Form("f%d",i),"[0]+x",0,10); f[i]->SetParameter(0,i); f[i]->SetLineColor(i+1); } TCanvas *c1 = new TCanvas("c1","c1", 700,700); f[5]->Draw(""); for(int i=0; i<5; i++) f[i]->Draw("same"); TLegend *leg1 = new TLegend(0.14,0.59,0.42,0.91," 1"); TLegend *leg2 = new TLegend(0.42,0.59,0.70,0.91," 2"); leg1->AddEntry(f[2], "","l"); leg1->AddEntry(f[1], "","l"); leg1->AddEntry(f[0], "","l"); leg1->Draw(""); leg2->AddEntry(f[5], "","l"); leg2->AddEntry(f[4], "","l"); leg2->AddEntry(f[3], "","l"); leg2->Draw(""); }