debugging plot.py