catch import error for matplotlib