15 const char *month[nx] = {
"January",
"February",
"March",
"April",
"May",
16 "June",
"July",
"August",
"September",
"October",
"November",
18 const char *people[ny] = {
"Jean",
"Pierre",
"Marie",
"Odile",
"Sebastien",
19 "Fons",
"Rene",
"Nicolas",
"Xavier",
"Greg",
"Bjarne",
"Anton",
20 "Otto",
"Eddy",
"Peter",
"Pasha",
"Philippe",
"Suzanne",
"Jeff",
26 TH2F *
h =
new TH2F(
"h",
"test",3,0,3,2,0,2);
30 for (
Int_t i=0;i<15000;i++) {
33 h->
Fill(people[ry],month[rx],1);
43 pt->
AddText(
"Use the axis Context Menu LabelsOption");
44 pt->
AddText(
" \"a\" to sort by alphabetic order");
45 pt->
AddText(
" \">\" to sort by decreasing values");
46 pt->
AddText(
" \"<\" to sort by increasing values");
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual Double_t Rndm()
Machine independent random number generator.
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
2-D histogram with a float per channel (see TH1 documentation)}
virtual void LabelsDeflate(Option_t *axis="X")
Reduce the number of bins for the axis passed in the option to the number of bins having a label...
R__EXTERN TRandom * gRandom
A Pave (see TPave) with text, lines or/and boxes inside.
virtual UInt_t SetCanExtend(UInt_t extendBitMask)
Make the histogram axes extendable / not extendable according to the bit mask returns the previous bi...
Int_t Fill(Double_t)
Invalid Fill method.
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.