pingplot: Only extend graph height when needed