basic graphing functionality