Re: [ROOT] another two stupid questions.

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Tue Feb 19 2002 - 14:17:45 MET


Hi,
Thanks for your help,

> In your example, you add the graph to the current directory.
> (...)
>   - to not add the graph to gDirectory, but to any other collection.

I.E. you suggest to replace :
	gDirectory->Append(MyGraph)
with :
	gROOT->GetListOfSpecials()->Add(MyGraph)
And everything should be o.k.
Right ?

> (... Question Two ...)
O.K. As I understand there is no "easy" solution. The only solution is to
create a "special" graph with all points in a "special" order. Fine.

Another stupid question ...
I have :
	TGraph *g1, *g2;
	TMultiGraph *mg;
	(...)
	g1->SetDrawOption("F"); // draw with fill
	g2->SetDrawOption("L"); // draw the line only (on top of g1)
	mg->Add(g1); mg->Add(g2);
	(...)
When I do "mg->Draw()" the "F" option of g1 is forgotten.
Any way to "preserve" it ?

Thanks,
Jacek.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET