zick-zack line .eps output

Hi

In the plot produced by this here the straight line isn't really straight and seems to "try to interpolate" the data points.

x = linspace(0.016, 0.017, 20)
y = 1000*x+5 + randn(len(x))/30.0
p = polyfit(x,y,1)
plot(x, y, 'o', x, polyval(p, x), 'r')
savefig('image.eps')

The same happens with p[0]*x+p[1] instead of polyval(p, x).
In the corresponding .png is OK so it seems to be a problem with the ps-backend.

cheers,
steve

···

--
When danger or in doubt, run in circles, scream and shout.

version please

···

On Tuesday 04 April 2006 16:32, Steve Schmerler wrote:

Hi

In the plot produced by this here the straight line isn't really
straight and seems to "try to interpolate" the data points.

x = linspace(0.016, 0.017, 20)
y = 1000*x+5 + randn(len(x))/30.0
p = polyfit(x,y,1)
plot(x, y, 'o', x, polyval(p, x), 'r')
savefig('image.eps')

The same happens with p[0]*x+p[1] instead of polyval(p, x).
In the corresponding .png is OK so it seems to be a problem with the
ps-backend.