|
From: John H. <jdh...@ac...> - 2006-07-07 19:42:05
|
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
Eric> Martin, When I try your example with svn matplotlib, I get a
Eric> 34 MB eps file, and looking at it, I don't see much room for
Eric> making it smaller--there is one obvious optimization,
Eric> abbreviating "marker", but that's it. (The svg file is 456
Eric> MB!) So, maybe some major optimization has already been
Eric> done between mpl 0.87.2 and svn.
Yep, Darren got "draw_markers" properly implemented for backend PS.
This function is much better in time and space; I believe only *Agg
and PS implement it, but it could be ported over to SVG fairly easily
by modifying the PS implementation.
Eric> The bigger problem is that each file format has basic
Eric> characteristics and limitations. If you draw a million
Eric> markers and line segments, you are inevitably going to have
Eric> a big postscript file, unless the postscript backend somehow
Eric> detects the fact that almost all of your points are
Eric> indistinguishable and therefore deletes most of them--and
Eric> this is really asking too much of a plotting backend, I
Agg does this for draw_lines -- it drops points in the path that are
less one pixel away from the previous point.
JDH
|