My data is as follows:
x = [3,4,5,6,7,8,9,9] y = [6,5,4,3,2,1,1,2]
And I can get the following two graphs.

and

However, I want this (on average, all the points along the way): 
Is this possible in matplotlib? Or I need to manually change the list and somehow create:
x = [3,4,5,6,7,8,9] y = [6,5,4,3,2,1,1.5]
RELATED CODE
ax.plot(x, y, 'o-', label='curPerform') x1,x2,y1,y2 = ax.axis() x1 = min(x) - 1 x2 = max(x) + 1 ax.axis((x1,x2,(y1-1),(y2+1)))