[ROOT] A simple question about histogram attributes

From: Claire Gwenlan (cg@hep.ucl.ac.uk)
Date: Sat May 20 2000 - 19:42:59 MEST


Hi Everybody,

Sorry about another simple question (my only excuse is that I've only just
started!). I want to plot a very simple set of histograms (in black and 
white) all overlayed onto each other, so I basically want to choose lots
of different line styles eg. dashed, dotted etc. I've looked at all the
documentation and I thought that maybe  SetHistLineStyle will
do the trick.

Firstly, am I right in thinking this?
Secondly, is there a list that gives all the possible options?
Thirdly, and most importantly, if this is the correct thing to use, I
can't get it to work by typing, for example,

h1->SetHistLineStyle(somenumber);

if my histogram is h1. The error that comes up is the following:

Error: Can't call TH1F::SetHistLineStyle() in current scope
FILE:/tmp/file9uApj4_cint LINE:1
Possible candidates are...
filename       line:size busy function type and name  (in TH1F)
filename       line:size busy function type and name  (in TH1)
filename       line:size busy function type and name  (in TNamed)
filename       line:size busy function type and name  (in TObject)
filename       line:size busy function type and name  (in TAttLine)
filename       line:size busy function type and name  (in TAttFill)
filename       line:size busy function type and name  (in TAttMarker)
filename       line:size busy function type and name  (in TArrayF)
filename       line:size busy function type and name  (in TArray)
*** Interpreter error recovered ***

So, what do I need to do?

Thanks a lot,

Claire

 __________________________________
 Claire Gwenlan
 Department of Physics & Astronomy
 University College London
 Gower Street
 LONDON
 WC1E 6BT

 Tel: (0171) 419 3454
_________________________________



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