When plotting a lego2 and saving it into pdf, it appears to be slightly transparent.
canvas_pal01_contour50.pdf (16.2 KB)
TH2D * histo = new TH2D ("histo","", 3,-3.,3., 3,-3.,3.) ;
Int_t pal=1 ;
Int_t contour=99 ;
TCanvas * canvas = new TCanvas ("canvas","canvas",0,0,800,800) ;
This effect is directly related to the number of contours used.
canvas_pal01_contour99.pdf (17.7 KB)canvas_pal01_contour20.pdf (15.1 KB)Actually the problem lies at the interface between 2 faces of different colors.
It does not seem related to the way the pdf file is read or created. I’ve tried several pdf readers and convert tools in vain.
Playing with gStyle->SetLineScalePS() does not help.
This is also not due to the new alpha parameter in TStyle::SetPalette() which by default is 1 (i.e. full opacity). See the plots below obtained with previous versions of Root (I work with the trunk release).
canvas_5.32.00.pdf (19.2 KB)canvas_5.27.04.pdf (19.3 KB)
Any ideas on how to avoid this?
If need be, could it please be fixed?