hi rooters,
I want to export a histogram with specified FillColor and
FillStyle to an eps file, coded as follows
{
TH1F *h1 = new TH1F(“h1”,“h1 tilte”,100,-1,1);
for (int i=0; i<1000; i++){
h1->Fill(sin(i));
}
h1->SetFillColor(3);
h1->SetFillStyle(3004);
TCanvas *c1 = new TCanvas("c1","c1 tilte");
h1->Draw();
c1->Print("c1.eps");
}
The FillColor and FillStyle can be visible in the TCanvas c1,
In c1.eps, however, it can not!
why is it?
Any suggestions and comments are appreciated!