Add a version check for optional matplotlib dependency.

Fixes Issue #98. 
@chriddyp, warning comes from here. it's during the import section.