Peak statistics plots re-implemented in Python