http://packages.python.org/rootplot/root2matplotlib.html#root2matplotlib-examples
shows the following code:
replacements = [('p_{x}', r'$p_x$'),
('#eta', r'$\eta$')]
hist.bar(color='r', replace=replacements)
This code produced the following error:
Traceback (most recent call last):
File "rootplottest.py", line 18, in <module>
hist.bar(color='r', replace=replacements)
[...]
AttributeError: Unknown property replace
A bit later in the tutorial there is an example which actually works:
replace = [('p_{x}', r'$p_x$'),
('#eta', r'$\eta$')]
hist = r2m.Hist(th1f)
hist.hist(color='r', histtype='stepfilled')
hist.show_titles(replace=replace)
so instead of hist.bar, hist.show_titles has to be used.
Cheers,
Luke