On Mon, 18 Sep 2000 ott@ciemat.es wrote:
Hi Daniel,
guess you have a typo SetFillCollor
^^
||
Cheers
Otto
>
> I would like to know how to set the fill color of a histogram in a
> standalone application. From the examples in the tutorial I have seen that
> this is simply made by
>
> s1->SetFillColor(42);
>
> However, when I try to compile my code with such an instruction,
> I get the error
>
> no matching function for call to TH1F::SetFillCollor
> This are my includes
>
> #include "TROOT.h"
> #include "TApplication.h"
> #include "TCanvas.h"
> #include "TGraph.h"
> #include "TPaveLabel.h"
> #include "TPad.h"
> #include "TArray.h"
> #include "TAttLine.h"
> #include "TAttFill.h"
> #include "TAttMarker.h"
> #include "TH1.h"
> #include "TF1.h"
>
> I don't know what is missing?
>
> Thanks a lot in advance,
>
> Daniel
>
Dr. Otto Schaile Sektion Physik, LMU Muenchen
Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany
GSM: +49 171 4312031
FAX: +49 89 289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET