Feature in postscript output

From: basil@hbaxp04.mppmu.mpg.de
Date: Thu Aug 28 1997 - 16:37:32 MEST


Hello,

I have found a strange behaviour of the postscript output of a canvas when using 
the drawing option "cont" (when I reported it the first time I could not 
reproduce it - sorry).

When you have 4 histograms named:
HitMatrix303
HitMatrix403 
HitMatrix503
HitMatrixTarget

and you use the attached macro dtest.C you get a nice output on the screen, but 
the ps-output using the menuoption (File->Save as ps) is somehow corrupted.
To show it I have put on our web-server in the directory
http://afmp03.mppmu.mpg.de:8080/~basil/rootbug/
the files:
OSFgcc.gif  OSFgcc.ps   align.root  dtest.C
where the gif is how it looks like on screen.
The align.root inculdes the 4 histograms.

Sincerly

Basil

----------------------------------------------------------------------------

dtest.C
-------
{
int CanvasColor=10;
// Initialisation for the Main Display Window

CDisplay4 = new TCanvas("Alignment", "Alignment",200,10,700,840);
CDisplay4->Show();  
CDisplay4->SetGrid();
CDisplay4->Update();
gStyle->SetOptStat(0);
gStyle->SetOptFit(0);
PadTitle  = new TPad("MainPadTitle" ,"Title"  ,0.  ,0.90,1.   ,1.   
,CanvasColor);
PadStatus = new TPad("MainPadStatus","Status" ,0.  ,0.80,1.00 ,0.90 
,CanvasColor);
Pad1 = new TPad("MainPad1","The first Pad "   ,0.  ,0.40,0.50 ,0.80 
,CanvasColor);
Pad2 = new TPad("MainPad2","The second Pad"   ,0.50,0.40,1.   ,0.80 
,CanvasColor);
Pad3 = new TPad("MainPad3","The third Pad "   ,0.  ,0.  ,0.50 ,0.40 
,CanvasColor);
Pad4 = new TPad("MainPad4","The fourth Pad"   ,0.50,0.  ,1.   ,0.40 
,CanvasColor);
PadStatus->Draw();
PadTitle ->Draw();
Pad1->Draw();
Pad2->Draw();
Pad3->Draw();
Pad4->Draw();
// Ready to go
Pad1->cd();

// End of initialisation

PadStatus->cd();
TPaveLabel LabelStatus01(0.02,0.25,0.40,0.75,"HUHU");
LabelStatus01.Draw();
TPaveLabel LabelStatus1 (0.78,0.25,0.98,0.75,"Run:");
LabelStatus1.Draw();
TPaveLabel LabelStatus2 (0.50,0.25,0.70,0.75,"Datum");
LabelStatus2.Draw();
PadStatus->Update();
PadTitle->cd();

TPaveLabel LabelTitle(0.2,0.2,0.8,0.8,"Diverse Histogramme");
LabelTitle.Draw();
PadTitle->Update();

Pad1->cd(); 
HitMatrix303->Draw("box");
Pad1->Update();
Pad2->cd(); 
HitMatrix403->Draw("box");
Pad2->Update();
Pad3->cd(); 
HitMatrix503->Draw("box");
Pad3->Update();
Pad4->cd(); 
HitMatrixTarget->Draw("cont");
Pad4->Update();
}



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:20 MET