Hi, I believe that when rendering a canvas as EPS the highlighting border on the canvas should not show in the resulting PostScript. However, using ROOT 4.00/03, I'm seeing a red border on my canvas: the border seems to be dark red on the top and left sides and lighter red on the other two sides. I'm not sure if this is a highlight border or something else. I'm running from a compiled executable rather than from CINT and have tried calling Canvas::SetHighLightColor() and setting Canvas.HighLightColor: 0 in my .rootrc. Any suggestions? Here's a compressed code snippet in case it helps: { TCanvas* _canvas = new TCanvas(); _canvas->SetFillColor(kWhite); _canvas->SetLineColor(kBlack); _canvas->SetBorderMode(1); _canvas->SetHighLightColor(kWhite); gROOT->SetStyle("Pub"); gStyle->SetTitleColor(kWhite); gStyle->SetTitleFillColor(kWhite); gStyle->SetTitleBorderSize(0); gStyle->SetTitleTextColor(kBlack); gStyle->SetCanvasBorderSize(0); gStyle->SetPadBorderSize(0); gStyle->SetCanvasBorderSize(0); THStack* _hs = new THStack(); // Add histos to THStack and then... _hs->Draw("HIST,9,NOSTACK"); _canvas->cd(); _canvas->SetHighLightColor(kWhite); _canvas->Print(filename.c_str()); } Can anyone help me to get rid of this border? An example output is this EPS file: http://www.hep.phy.cam.ac.uk/~buckley/Bmass.eps Andy -- Andy Buckley, HEP Group, Cavendish Lab, Cambridge http://www.insectnation.org
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET