only load matplotlib when needed

1 job for nifty2go in 4 minutes and 52 seconds