remove matplotlib from tgs