make plotter methods more re-usable

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