filled boxes and postscript

From: Tancredi Carli <>
Date: Fri, 15 Apr 2005 13:05:21 +0200 (CEST)


  I have a problem to print-out a box with a color.  The color appears on the screen, but not in the post-script file.

 I do the following:
  void test() {  

  TCanvas * c1= new TCanvas();

  Double_t tsize=0.1, boxsize=0.1;
  Double_t y=0.8, x=0.3;

  Double_t y1=y-0.25*tsize;
  Double_t y2=y+0.25*tsize;
  Double_t x2=x-0.3*tsize;
  Double_t x1=x2-boxsize;

  printf("x1= %f x2= %f y1= %f y2= %f \n",x1,x2,y1,y2);

  TPave *mbox= new TPave(x1,y1,x2,y2,0,"NDC");
//mbox->SetBit(TBox::kLineNDC ); // will set the bit kTRUE



 On the screen I see a yellow box, but not in the post-script file.  how can I solve this problem ?

 I am using version /afs/

 Thank you for your help.



|  Tancredi Carli                   |
|  CERN, Division EP                  phone  ++41 22 767 9606       |
|  CH-1211 Geneva 23                  Room   40-1-C06               |
Received on Fri Apr 15 2005 - 13:05:25 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET