You’re right, it seems to depend on the reader. Preview, for some reason, does not present me with the option of smoothing in the preferences. However, using Adobe Reader all seems to work well. Thank you.
Do you happen to know how this behaviour affects generating a .pdf file in LaTeX? ( I use TexShop).
Edit: I have a similar problem in producing colour-filled histograms:
The pdf is generated by ROOT and Latex does not modify it. PDF is a vectorial data format. So there is no pixel stored in the file… you can enlarge as much a you want it will always been nicely displayed.
TFile *fin = new TFile("4CEPconstrainedphi.root");
TTree *t1 = (TTree*)fin->Get("t1");
Float_t M;
t1->SetBranchAddress("M", &M);
TCanvas *c1 = new TCanvas("c1","c1");
c1->cd();
TH1F *h = new TH1F("h","M distribution", 200, 4000, 5000);
gStyle->SetOptStat(0);
h->SetFillStyle( 3000);
h->SetFillColor( kBlue-10);
h->SetLineColor(kBlue);
h->SetLineWidth(1);
for (Long64_t i=0;i<nentries;i++) {
t1->GetEntry(i);
h->Fill(M);
}
h->DrawClone(); //tried this as an alternative to the Draw() method
c1->SaveAs("tetra_CEP_PID2.pdf");
}