14 const char *month[
nx] = {
"January",
"February",
"March",
"April",
"May",
15 "June",
"July",
"August",
"September",
"October",
"November",
17 const char *people[
ny] = {
"Jean",
"Pierre",
"Marie",
"Odile",
"Sebastien",
18 "Fons",
"Rene",
"Nicolas",
"Xavier",
"Greg",
"Bjarne",
"Anton",
19 "Otto",
"Eddy",
"Peter",
"Pasha",
"Philippe",
"Suzanne",
"Jeff",
25 TH2F *h =
new TH2F(
"h",
"test",3,0,3,2,0,2);
29 for (
Int_t i=0;i<15000;i++) {
32 h->
Fill(people[ry],month[rx],1);
42 pt->
AddText(
"Use the axis Context Menu LabelsOption");
43 pt->
AddText(
" \"a\" to sort by alphabetic order");
44 pt->
AddText(
" \">\" to sort by decreasing values");
45 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 Double_t Rndm(Int_t i=0)
Machine independent random number generator.
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(UInt_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)
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)
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.
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.