graph plotting device