from_root#

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

Initiate a Hist2d from a ROOT file.

Parameters:
fnamestr | PathLike

The path to the ROOT file.

hnamestr

The path to the 2D histogram within the root file.

Returns:
Hist2d

A new Hist2d instance.