fix: matplotlib import to inside function
Merge pull request #668 from satra/fix/mpl_in_nipy

fix: matplotlib import to inside function