refactoring plotter initialization

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