Hello Root Users, I have a problmen with the postscript output. If I want to generate a portrait output everything is fine. But if the output should be landscape on the first page the upper third and on the second page the upper half of the page is missing in the postscript file. When I generated the postscript file the canvas output looked fine. Here I have an example script for you: ------------------------------------------------------------------ { gROOT->Reset(); gROOT->SetStyle("Plain"); gStyle->SetFrameBorderMode(0); gStyle->SetOptDate(1); gStyle->SetOptStat(000000); TH1F *histo = new TH1F("histo","Test Histogram",5,0.0,5.0); histo->SetBinContent(1,2); histo->SetBinContent(2,7); histo->SetBinContent(3,4); histo->SetBinContent(4,2); TPostScript sigmasps("sigmas.ps",112); sigmasps.Range(29,21); sigmasps.NewPage(); TCanvas *c1 = new TCanvas("c1","Test 1"); 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(); histo.Draw(); c1->Update(); sigmasps.NewPage(); 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 checked this for different versions off root (2.00/13 and 2.22/09). Tschuess Stefan ********* Stefan Stonjek ********* ***** DESY / ZEUS ***** ***** Stefan.Stonjek@desy.de ***** ********* Tel.: +49-40-8998-3159 *********
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET