Remove whitespace in diagrams