from_root#

classmethod Hist1d.from_root(fname, hname, title='__auto__', xlabel='__auto__', ylabel='__auto__')[source]#

Initiate a Hist1d from a ROOT file.

Parameters:
fnamestr or PathLike

The filename of the ROOT file, e.g., important_data.root

hnamestr

The name of the histogram within the ROOT file, e.g., path/to/histogram1d.