use more conventional import for matplotlib

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