Small fix to matplotlib imports