RE: problem with lines around boxes when saving eps/pdf

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 29 Aug 2007 10:17:24 +0200


I see the problem too. Thanks to have reported it. I'll have a look. O.Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Constantin Loizides
Sent: Tuesday, August 28, 2007 9:37 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] problem with lines around boxes when saving eps/pdf

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 Wed Aug 29 2007 - 10:17:43 CEST

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