Re: [ROOT] canvas created but not drawn ...

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Fri Apr 11 2003 - 18:27:37 MEST


> Did you draw something in the canvas?

The point is - there is NOTHING drawn, even the canvas itself.
I mean, the "new TCanvas(...)" doesn't draw anything.
And later the "c->Draw()" doesn't draw anything.

> Could you add the statement
>   c->Saveas("mycancas.root");

Well, the "mycancas.root" looks perfectly fine.
Is it possible that because I link my Geant4 application with root
libraries (and not opposite) something important doesn't get initialized ?

> Note that the statement c->Draw() is redundant when called in the session
> where the canvas has been created.

I need (from time to time) to "c->Draw(); c->Update();" in order to
"refresh" the canvas.

Thanks in advance,
Jacek.



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