[ROOT] histogram fillstyle in ps file

From: Paul Balm (r45@nikhef.nl)
Date: Wed Nov 27 2002 - 13:44:44 MET


Hello,

I'm trying to print several canvases to one postscript file using the 
TPostScript class. The histograms on the canvases have different 
fillstyles, fillcolors, linecolors, etc. However, when I print the 
canvas, either using the print option from the canvas pull-down menu, or 
the TPostScript class, the histograms are "open" (i.e. not filled) and 
the line-color is black for all histograms.
I have reproduced this with the attached macro.
Does anyone have any ideas how to get around this problem?
Thanks!

Paul

PS I'm using root 3.03/09 on Linux RH6.


{

TFile* tf = new TFile("histos/tarc/bbbar_pt0.5/histos_bbbar_tracking_htf.root","READ");

TCanvas* c_dca = new TCanvas("dca","DCA");

TH1F* h_dca = new TH1F( * (TH1F*) tf->Get("dca_mc_pi"));

h_dca->SetLineColor(2);
h_dca->SetFillColor(2);
h_dca->SetFillStyle(3003);

h_dca->Draw("hist");

c_dca->Print("test.ps");

}



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET