17 auto c =
new TCanvas(
"canvas",
"Canvas with histogram");
19 auto h1 =
new TH1I(
"hist",
"Histogram with random data", 100, -5., 5);
24 for (
int n = 0;
n < 100; ++
n) {
1-D histogram with an int per channel (see TH1 documentation)
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
virtual void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr)
void Draw(Option_t *option="") override
Draw this histogram with options.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
static void BatchImageMode(UInt_t n=100)
Configure batch image mode for web graphics.