add plotting functionality

default to plotting unless specified otherwise