better makeplotscript.py