13 TCanvas *
c =
new TCanvas(
"c1",
"Creating image from histogram drawing", 800, 600);
14 TH1F *
h =
new TH1F(
"gaus",
"gaus", 100, -5, 5);
15 h->FillRandom(
"gaus", 10000);
21 img->WriteImage(
"canvas.png");
1-D histogram with a float per channel (see TH1 documentation)
virtual void Option_t *static TImage * Create()
Create an image.