Add a version check for optional matplotlib dependency.

Fixes Issue #98. 
haven't tested this across all python versions, there's a chance it doesn't exist is python 2.6 or something... i'll get back on that.