first pass at plotting.py