Skip to content

Commit 2ea532a

Browse files
committed
Bring hgwatch in line with the new frontend interface.
1 parent 90511a1 commit 2ea532a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/hgwatch

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ commandSets = {
3737
# for --root
3838
"root": """
3939
import ROOT
40+
roothist = None
4041
41-
# Must give hg.root the right number of "name" strings.
42+
# Must give hg.plot.root the right number of "name" strings.
4243
if isinstance(hg, Fraction):
43-
roothist = hg.root(newName(), newName())
44+
roothist = hg.plot.root(newName(), newName())
4445
elif isinstance(hg, (Stack, IrregularlyBin)):
45-
roothist = hg.root(*[newName() for i in xrange(hg.cuts)])
46+
roothist = hg.plot.root(*[newName() for i in xrange(hg.cuts)])
4647
else:
47-
roothist = hg.root(newName())
48+
roothist = hg.plot.root(newName())
4849
4950
if isinstance(roothist, ROOT.TH2):
5051
roothist.Draw("colz") # Preferred visualization.

0 commit comments

Comments
 (0)