Add a version check for optional matplotlib dependency.

Fixes Issue #98. 
Is this only used if necessary? i.e. if using `plot_mpl`?