Added the control polygon to the plot function and changed one out of
bounds check in _findHotInterval. A point is allowed to be on the right
bound point, because it still belongs to the interval of the second to
last point.