Large postscript output

I don't know if that has been reported yet, but the size of postscript output
doesn't change when "less" points are plotted.

x = range(8000)
y = [rand() for i in x]
plot(x,y)
savefig("t.eps")
xlim(0,1000)
savefig("t2.eps")

produces rougly the same size eps file.
It seems that the PS backend draws outside the bounding box and then clips it.

Is there any solution/workaround for this? If you submit ps files to
publishers they often restrict the size of the files.

PS
I am using mpl 0.82

This is a referenced bug/support:

http://sourceforge.net/tracker/index.php?func=detail&aid=1204314&group_id=80706&atid=560721

the only way to avoid this problem is to cut your data yourself not to let matplotlib does it for you.

N.

Malte Marquarding wrote:

ยทยทยท

I don't know if that has been reported yet, but the size of postscript output doesn't change when "less" points are plotted.

x = range(8000)
y = [rand() for i in x]
plot(x,y)
savefig("t.eps")
xlim(0,1000)
savefig("t2.eps")

produces rougly the same size eps file.
It seems that the PS backend draws outside the bounding box and then clips it.

Is there any solution/workaround for this? If you submit ps files to publishers they often restrict the size of the files.

PS I am using mpl 0.82