converted matrices from tables into figures