Hi Claire,
The option "L" in the current or old versions does not draw a fill area
even if the histogram fill color is set.
In the development version now in CVS, I have implemented two new options.
h.Draw("l"); //as before if hist fill color = 0
//if hist fill color != 0 the area coresponding to the normal
histogram contour is drawn with the hist fill color.
h.Draw("lf2"); the option you require
In the development version, I have also implemented a new TGraph & TGraphErrors
constructor acception a TH1* as input argument. This will facilitate the
creation of TGraphs to draw histograms with all the TGraph options.
Rene Brun
Claire Gwenlan wrote:
>
> Hi,
>
> I'm having quite a simple problem, in that I can't get a fill colour when
> I use option:
>
> h->DrawCopy("histl");
>
> I've got something like:
>
> h->SetFillColor(kRed);
> h->DrawCopy("histl");
>
> and it comes up with the straight lines but no fill colour. However, if I
> use the option,
>
> h->DrawCopy("histC");
>
> then it comes up with the curvy line and the fill colour is fine.
> Unfortunately, I need straight lines for the histogram I want. Is this
> usual?
>
> I'm currently using version 3.02/05
>
> Cheers,
>
> Claire
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET