new version of plot.py