Re: [ROOT] read an array of Graph from a file

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Nov 13 2000 - 15:51:55 MET


Hi Silvia,
Give a name to each of your graphs when you save them on the file.
Example:
  name[20];
  for (Int_t i=0;i<24;i++) {
     sprintf(name,"Graph%d",i);
     gr[i]->Write(name);
  }

Rene Brun

Silvia Borghi wrote:
> 
> I create an array of 24 graphs (the name of graph is gr[i]), and I save
> them on a file, but when I open this file and use the command fill.ls(); I
> discover that the name of the graph is Graph;1 Graph;2 and soon on (and
> not gr[i]).
> So when I could not draw the Graph that I want but only one, because I
> could not distinguish by the name (I try to put Graph;1 or (Graph;1) or
> ("Graph;1") but it gives me an error)
> How could I solve this problem?
> thanks
> Silvia



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET