Prevents overlapping of graphs.