Hi Birger, All Root objects that can be drawn inherit from classes such as TAttLine, TAttFill, TAttText, TAttMarker. This is the case for histograms. To set the line width, use myHist->SetLineWidth(4); In case you want to force a gStyle option on histograms that have been created before setting the style (histograms in a file), You can force Root to apply the current style to the objects when they are being read back in memory, eg gStyle->Setsomething.... gROOT->ForceStyle(); // <=== the important call Rene Brun On Thu, 9 Mar 2000, Birger Koblitz wrote: > Hi Rooters, > > I have the following problem: I converted some hbook files with histograms > and now I would like to plot them under root. This works as far as one > does not want to plot them in a non default way. I change the markers, I > plot with the option "l" or "c", the only thing I get is the histograms > with errorbars as markers. The only thing I can set in the histograms > seems to be the color. > Now I remembered the good old PAW times and used the undocumented drawing > option "hist", this works as far as the options are concerned that can be > set in the drawing options, e.g. "histc" gives you a smooth line, but how > can I set the thickness? gStyle->SetHistLineWidth(4) before drawing > simply refuses to work. > > So could someone enlighten me: > What is the difference between a root histo and one converted from hbook? > Why the hell is there a difference at all??? > > Cheers, > Birger > > /------------------------------------------------------------\ > | Birger Koblitz koblitz@mail.desy.de | > | Max-Planck-Institut fuer Physik | > | (Werner Heisenberg-Institut) | > | DESY-FH1K Tel. (40) 8998-3971 | > | Notkestr. 85 | > | D-22603 HAMBURG | > \------------------------------------------------------------/ >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET