[ROOT] How can I set the fill color of a histogram?

From: ott@ciemat.es
Date: Mon Sep 18 2000 - 14:28:16 MEST


Hi,

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



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