adds basic plotting functionality