Having an old good white and black plot

From: C. Bernet (bernet@phnx7.saclay.cea.fr)
Date: Wed Feb 16 2000 - 17:37:19 MET


Hi all,

I'm currently trying to get a "paw style" with root, that is :
- No 3d effect
- Plain white background.

I already looked in the roottalk, and tried the "save your plot as
canvas.C and edit it" trick.

SetFillColor(0) and SetBorderSize(0) works fine for the canvas, but not
for the TPaveText and TPaveStats (see the macro at the end). Actually,
you can try anything on them,
nothing happends...I really don't understand why.

Does anybody have a clue ?

Thanks a lot !

	Colin


{
//=========Macro generated from canvas: c1/c1
//=========  (Wed Feb 16 18:06:59 2000) by ROOT version 2.23/12
   TCanvas *c1 = new TCanvas("c1", "c1",8,8,698,498);
   c1->SetHighLightColor(2);
   c1->Range(-75,-15.75,675,141.75);
   c1->SetFillColor(0);
   c1->SetBorderSize(0);
   
   h100->Draw("");
   
   TPaveText *pt = new TPaveText(0.01,0.945,0.12,0.995,"blNDC");
   pt->SetBorderSize(0);
   pt->SetFillColor(19);
   TText *text = pt->AddText("adc2");
   pt->Draw();
   
   c1->Update();

   pt = new TPaveStats(0.78,0.82,0.98,0.98,"brNDC");
   pt->SetBorderSize(2);
   pt->SetFillColor(19);
   pt->SetTextAlign(12);
   text = pt->AddText("h100");
   text = pt->AddText("Nent = 4811   ");
   text = pt->AddText("Mean  =    194");
   text = pt->AddText("RMS   =  47.81");
   pt->Draw();
   c1->Update();
   c1->cd();
}



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET