Error in Pyroot tutorial twoscales.py

Dear developers,
I noticed a problem in the tutorial file twoscales.py
As can be seen on the online page (the macro is also found in the tutorials/hist folder of a ROOT install), the second plot (in red) is not drawn correctly:
https://root.cern/doc/master/twoscales_8py.html
(compare against the original twoscales.C version).
The issue is that the line

c1.Update()

is missing after h1.Draw().
Also, a couple of “;” from the original are still in the Python version (“rightmax” and “scale” lines).


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Nice catch. I will look.

1 Like

PR here: https://github.com/root-project/root/pull/9110. [MERGED]
Your suggestions were the right ones.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.