problem with lines around boxes when saving eps/pdf

From: Constantin Loizides <loizides_at_mit.edu>
Date: Tue, 28 Aug 2007 21:36:51 +0200


Hi,
I have problems drawing boxes with lines: The canvas looks fine on the screen and when I save it as gif is okay. However, when saving it to eps or pdf the lines around the boxes get lost. A simple macro that illustrates this is attached below (this is for ROOT head of today and for the last two weeks). Thanks,
Constantin

{

    TCanvas c;

    TH2D h("h","",2,0,10,2,0,10);
    h.Draw();
    TBox b(1,5,8,9);
    b.SetLineWidth(2);
    b.SetFillStyle(1000);
    b.SetLineColor(1);
    b.Draw("l");

    c.SaveAs("c.gif");
    c.SaveAs("c.eps");
} Received on Tue Aug 28 2007 - 21:37:52 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 29 2007 - 11:50:01 CEST