FW: [Fwd: Strange Axis Behavior in 5.23.04]

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 6 May 2009 10:46:19 +0200


Hi Akira,

Thanks for your report. I found the faulty bug fix. It is: http://root.cern.ch/viewvc?view=rev&revision=28200 I am now trying to do this fix without introducing the problem you found.
Many thanks to have seen it.
Cheers,
Olivier

-----Original Message-----
From: Rene Brun
Sent: Wednesday, May 06, 2009 9:46 AM
To: Olivier Couet
Subject: [Fwd: [ROOT] Strange Axis Behavior in 5.23.04]

attached mail follows:


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 - 10:46:32 CEST

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 17:50:02 CEST