Hi Dmitry, I have tried to reproduce your problem with the following example: { TCanvas *c2 = new TCanvas("c2", "c2",101,169,800,600); c2->Range(0,0,1,1); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetFrameBorderMode(0); TPave *pave = new TPave(0.1,0.1,0.9,0.9,4,"br"); pave->SetFillColor(1); pave->SetFillStyle(3013); pave->Draw(); } To generate the PS file I used "Save As" from the canvas menu. Then I visualised the PS file with gv and gs and it works for me. I know that some version of gv/gs are unable to visualise the /Pattern PostScript directive. Actually the important utility is gs (gv uses gs). Can you check the gs version you have ? (with gs -v). The one I use is: Aladdin Ghostscript 5.50 (1998-9-16) By the way you should be able to print your PS file without any problems. Cheers, Olivier -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155 On Sun, 8 Sep 2002, Dmitry Litvintsev wrote: > > > Hi ROOTers, > > I have encountered possible bug in ROOT PS generation. > > I do these commands: > > gROOT->SetStyle("Plain"); > TCanvas* c2 = new TCanvas("c2","c2",800,600); > TPave* pave = new TPave(0.1,0.1,0.9,0.9); > pave->SetFillColor(0); > pave->SetFillStyle(3013); // supposed to be cross-hatched > c2->cd(); > pave->Draw(); > pave->SaveAs("test.ps") > > I see cross-hatched pave in the canvas > > first: > if I try to look at the resulting file test.ps using ghostview > like this: > ghostview test.ps > I get nothing, cursor turns into wristwatch and nothing happens > > second: > I looked at ghostview options and tried '-noantialias' (what the > heck) > ghostview -noantialias test.ps > > does display a picture. But the pave shown is not cross-hatched > it is as white as snow, > > I am using some 3.02/07h Fermilab made root version build > for Linux under KAI. > > Can you reporoduce these problems and if yes could you fix them? > > thanks, > Dmitry Litvintsev > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:08 MET