Update test2.py

Added graph output