TH1D* h = new TH1D("h", "Example Histogram", 10, 0, 10); h->SetFillStyle(1001); // Set fill style to solid black
TH1D* h = new TH1D("h", "Example Histogram", 10, 0, 10); h->SetFillStyle(3004); // Set fill style to a checkered patternThis code creates a histogram with 10 bins ranging from 0 to 10 and sets the fill style to a checkered pattern. Package library: ROOT data analysis framework.