connectEndPoint gives corresponding end nodes the same y position
can add and subtract mean lines by using slider to set numMeanLine value