Use matplotlib without UI.