add a red segment to indicate maximum point