utility left plot python code