updated graphing.py