Re: [ROOT] drawing a number oncanvas...

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jul 04 2003 - 23:16:25 MEST


Hi Vojtek,

What is wrong with TText?
For example, do:


root [0] Double_t x = 3.141592
root [1] TText t(.1,.5,Form("%g",x))
root [2] t.Draw()

Rene Brun

On Fri, 4 Jul 2003, Wojciech Tadeusz 
Fedorko 
wrote:

> Hi,
> This is probably quite simple task, but I seem to be unable to find the 
> solution.
> I want to display a value of a certain Double_t variable on canvas next 
> to my histogram
> So I need to 'parse' my Double_t variable into TText somehow and than do 
> mytext->Draw() on my canvas. Any other ways to do the job?
> thank you,
> Wojtek
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET