[ROOT] PostScript Problem

From: Stefan Stonjek (stonjek@mail.desy.de)
Date: Thu Dec 07 2000 - 16:57:43 MET


Hello Rooters,

I found a problem with a postscript file. The postscript file generated
with the following macro looks fine. But if I go backwards just the lower
left corner of the first page is displayed. Is this a bug or a feature?

=====================================================================
//
{
  gROOT->Reset("a");    
  gROOT->SetStyle("Plain");

  TH1F *histo = new TH1F("histo","Test Histogram",10,0.0,10.0);
  histo->SetBinContent(1,2);
  histo->SetBinContent(2,7);
  histo->SetBinContent(3,4);
  histo->SetBinContent(4,2);
  histo->SetBinContent(5,6);
  histo->SetBinContent(6,4);
  histo->SetBinContent(7,8);
  histo->SetBinContent(8,3);
  histo->SetBinContent(9,1);

  TPostScript sigmasps("pstest.ps",111);

  TCanvas *c1 = new TCanvas("c1","Test 1",600,800);

  sigmasps.NewPage();  
  c1->Clear();
  c1->Divide(2,2);
  c1->cd(1);
  histo.Draw();
  c1->cd(2);
  histo.Draw();
  c1->cd(3);
  histo.Draw();
  c1->cd(4);
  histo.Draw();
  c1->Update();

  sigmasps.NewPage();
  c1->Clear();
  c1->Divide(2,2);
  c1->cd(1);
  histo.Draw();
  c1->cd(2);
  histo.Draw();
  c1->cd(3);
  histo.Draw();
  c1->cd(4);
  histo.Draw();
  c1->Update();

  sigmasps.Close();
  
}
===============================================================

I used ghostview. If I step from the first to the second page and then
backward to the first page I ovserved the problem.

Tschuess
	Stefan

*********      Stefan  Stonjek     *********
*****            DESY / ZEUS           *****
*****      Stefan.Stonjek@desy.de      *****
*********  Tel.: +49-40-8998-3159  *********



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