Change plotresults.py to be compatible with current code