troubleshooting plot.py