Eliminate dead space from diagrams