Strange Axis Behavior in 5.23.04

From: OKUMURA, Akira <oxon_at_ceres.phys.s.u-tokyo.ac.jp>
Date: Wed, 6 May 2009 14:25:33 +0900


Hello ROOTers,

Today I downloaded ROOT 5.23.04 and found a strange behavior in graphics.
ftp://root.cern.ch/root/root_v5.23.04.Linux-slc5_amd64-gcc3.4.tar.gz

on Scientific Linux 4.7 (64 bit)

This sample macro does not work as I expected.
- X and Y titles are drawn on right and top

void test()
{

   TCanvas* can = new TCanvas();
   can->SetLogx();
   can->SetLogy();
   TGraph* gra = new TGraph();

   for(int i = 0; i < 10; i++){
     gra->SetPoint(i, i + 1, i + 1);
   } // if

   gra->SetTitle("title;x;y");
   gra->GetXaxis()->SetLimits(1e-2, 1e2);
   gra->GetHistogram()->SetMinimum(1e-2);
   gra->GetHistogram()->SetMaximum(1e2);
   gra->GetXaxis()->CenterTitle();
   gra->GetYaxis()->CenterTitle();
   gra->Draw("a*");

}

The macro runs as I expected with 5.23.02. Have you changed any core functions in graphics?

Regards,

OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp Department of Physics, The University of Tokyo 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira Received on Wed May 06 2009 - 07:25:52 CEST

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 11:50:01 CEST