move plotting related routines to graph library

Change-Id: I096601c0a22f94759aea3f29d90271bafbd92fbb
Reviewed-on: http://review.couchbase.org/24134
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>