Make the matplotlib import optional. See https://github.com/nipy/dipy/blob/master/dipy/viz/projections.py#L12 for an example on how to use `utils.optpkg` to do that.