Re: TLine in LogX

From: Thomas Bretz <tbretz_at_astro.uni-wuerzburg.de>
Date: Tue, 25 Jan 2005 13:50:22 +0100


Hi,

thanks for the hints, but I don't have to toggle between lin- and log-scale. I simple want to display a straight line on top of a log-scale histogram. For me it is not clear why this should not work. I would have no problem, to convert the coordinates manually before - but I couldn't fugure out how...

Thomas.

Olivier Couet wrote:

> This one helps too:
> 
> http://root.cern.ch/root/roottalk/roottalk02/0492.html
> 
> O.
> 
> On Tue, 25 Jan 2005, Thomas Bretz wrote:
> 
> 

>>Dear all,
>>
>>what is wrong with this?
>>
>>new TCanvas
>>gPad->Range(1,1,10,10);
>>gPad->SetLogx();
>>
>>TLine l;
>>l.DrawLine(2,2,9,9); // doesn't work
>>l.DrawLine(0.1, 0.1, 0.9, 0.9) // doesn't work, too
>>
>>I'm not able to get a line drawn in a Logx-pad...
>>
>>Thomas.
>>
>>

>
> Received on Tue Jan 25 2005 - 13:50:38 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET