Hi Michael, You will be pleased to know that a TLegend class will be part of Root 2.23. The initial version has been kindly provided by Matt Dobbs. You can look at http://pcbrun.cern.ch/root/TLegend.html for a description of the proposed interface. Comments are still welcome. I am currently working on this class to make it operational on all systems. Rene Brun Michael.Sievers@desy.de wrote: > > Full_Name: Michael Sievers > Urgency: minor > > Hi, > > I would like to have a legend class. I think not many people > are missing it now, because they are used to drawing a line/ > marker and text, but everyone will be happy when it exists! > > I know this has been asked by Rene Brun on roottalk without > resonance, but still it wuold be a great help. Following > the question in that mail, one should chose a dedicated > class or a TH1 method. I'm not really sure what's better, > but it should be easy to draw a legend for the case of many > histograms drawn in the same pad. > > I'd probably go for a dedicated class, to which histograms > (Graphs) can be added. Say, > TLegend::Add(TH1 & h1) > makes the legend look at the marker/line type of h1 when > drawing the legend. > > Thanks for supplying me with a C++ analysis tool! > > Bye, > Mike
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET