limit height of graphs