line fading


I've noticed that the line density seems to vary if the x-values in a 2D plot are not ordered and the x,y pairs fall on the same line.

For example, compare these 2 plots:
def f(x):
  return x+1
x1 = arange(5)
x2 = array([2,5,3,1,4])
plot(x1, f(x1))
plot(x2, f(x2))

For me, the plot generated by x2 (the second call of show) is dense in the middle and fades out at the edges. I assume this is somehow due to the line redrawing over itself as it moves from point to point.

Is there a good way to clean it up, other than always sorting the x variable list?