RE: Bug: axis titles

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 21 Feb 2007 17:50:10 +0100


Yes, that's weird. I'll look at it.

Cheers, Olivier Couet

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Alexander Wagner Sent: Wednesday, February 21, 2007 5:13 PM To: Roottalk
Subject: [ROOT] Bug: axis titles

Hi!

If I use the options


        TGraph* gr = new TGraph(4);

	gr->SetPoint(0, xmin, ymin);
	gr->SetPoint(1, xmin, ymax);
	gr->SetPoint(2, xmax, ymax);
	gr->SetPoint(3, xmax, ymin);

	gr->GetYaxis()->SetTitle("#delta");
	gr->GetYaxis()->SetTitleFont(42);
	gr->GetYaxis()->SetLabelFont(42);
	gr->GetYaxis()->SetLabelSize(0.03);
	gr->GetYaxis()->SetTitleOffset(1.1);
	gr->GetYaxis()->SetTicks("+-");

----------------------------------------------------------------------

I get axis ticks on both sides of the axis. this is fine. But the title onthe y-axis is allways drawn _inside_ the plot, not outside on the axis as it shoul be. I can change the value of SetTitleOffset() to my liking but I do not get the title left of the axis. Even for negative offsets.

The root version in question is 5.14/00b

-- 

Kind regards,                /                 War is Peace.
                            |            Freedom is Slavery.
Alexander Wagner            |         Ignorance is Strength.
                            |
                            | Theory     : G. Orwell, "1984"
                           /  In practice:   USA, since 2001
Received on Wed Feb 21 2007 - 17:50:18 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 21 2007 - 23:50:01 CET