As a workaround you can try: void test_frame(int nc=3) { TCanvas *c2=new TCanvas("c2","c2"); c2->Divide(nc,1,0.001,0.001); TH1 *h1; for(int i=0;i<nc;i++) { c2->cd(i+1); gPad->SetTopMargin(0.0001); gPad->SetLeftMargin(0.0001); gPad->SetRightMargin(0.0001); gPad->SetBorderMode(0); gPad->SetBorderSize(0); h1 = gPad->DrawFrame(0,0,(i+1)*10,10*(i+1)*(i+1)); h1->GetYaxis()->SetLabelSize(0.0001); } c2->cd(); } O.Couet On Fri, 31 Oct 2003, daniel cussol wrote: > Hello everybody, > > I am facing the following problem. When I run the "test_frame" procedure > (see attached file test_frame.C), and save the result in a PS or an EPS > file (using the TCanvas::Print() method), non expected axis values of > the Y axis appear in the saved PS or EPS file, while they are not > present in the TCanvas display. This problem was not present in "old" > versions of ROOT (at least up to the 3.04.02 version, see > c2_v03_04_02.eps file which corresponds exactly to the display of the > TCanvas), but occurs for more recent versions (see file c2_v03_05_07.eps > for the 3.05.07 version and file c2_v03_10.eps for the 3.10 version). I > run ROOT under Linux RH9. Could somebody help? > Thanks for your help > > -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET