16void transp(
bool gl =
true)
22 auto cnv =
new TCanvas(
"trasnparency",
"transparency demo", 600, 400);
23 if (!cnv->UseGL() && !cnv->IsWeb() && !
gVirtualX->InheritsFrom(
"TGCocoa"))
25 "To have real transparency in a canvas graphics, you need either OpenGL or Mac/Cocoa or Web rendering enabled");
27 auto hist =
new TH1F(
"a5",
"b5", 10, -2., 3.);
28 auto hist2 =
new TH1F(
"c6",
"d6", 10, -3., 3.);
29 hist->FillRandom(
"landau", 100000);
30 hist2->FillRandom(
"gaus", 100000);
32 hist->SetFillColor(redIndex);
33 hist2->SetFillColor(greeIndex);
float Float_t
Float 4 bytes (float)
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
R__EXTERN TStyle * gStyle
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
1-D histogram with a float per channel (see TH1 documentation)
void SetCanvasPreferGL(Bool_t prefer=kTRUE)