19 Int_t indices[2] = {};
21 ::Error(
"transp",
"failed to create new custom colors");
26 const Int_t redIndex = indices[0], greeIndex = indices[1];
28 new TColor(redIndex, 1., 0., 0.,
"red", 0.85);
29 new TColor(greeIndex, 0., 1., 0.,
"green", 0.5);
32 TCanvas *
const cnv =
new TCanvas(
"trasnparency",
"transparency demo", 600, 400);
34 TH1F *
const hist =
new TH1F(
"a5",
"b5", 10, -2., 3.);
35 TH1F *
const hist2 =
new TH1F(
"c6",
"d6", 10, -3., 3.);
unsigned FindFreeCustomColorIndices(T(&indices)[N])
R__EXTERN TStyle * gStyle
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
void Error(const char *location, const char *msgfmt,...)
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
The color creation and management class.