added some common graphing functions