Use x1y2 instead of x1y1 in the plot command only if right is specified _and_ it is not False! Previously the latter was not checked which led to a very confusing situation where the numbers on the y axis appeared to be wrong (because the points were in fact plotted on a different y axis) if you specified right=False.