From: Carl D. K. <cmk...@gm...> - 2005-11-30 19:34:22
|
Hi matplot-list, drawing scatterplots with thousends of scatter dots (marker='o') yields in bloated file sizes for vector-formats (ps, svg). The reason for that is, that each marker circle ist made of a large number of lines instead of a simple arc (0..360 degree) i.e. Can this be patched easily? and btw what is the meaning of the _newstyle attribute in the drawing methods? For postscript output it would be a gould idea to declare the markers as postscript macros. Regards Carl -- Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat, DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl |
From: John H. <jdh...@ac...> - 2005-11-30 21:24:24
|
>>>>> "Carl" == Carl Dr Kleffner <cmk...@gm...> writes: Carl> Hi matplot-list, drawing scatterplots with thousends of Carl> scatter dots (marker='o') yields in bloated file sizes for Carl> vector-formats (ps, svg). The reason for that is, that each Carl> marker circle ist made of a large number of lines instead of Carl> a simple arc (0..360 degree) i.e. Carl> Can this be patched easily? and btw what is the meaning of Carl> the _newstyle attribute in the drawing methods? Originally the backends drew each marker with a separate function call, which was slow and prevented optimizations. We introduced a new API to make marker drawing fast, but rather than break all the noncompliant backends we left a flag in for newstyle, meaning the new API, to determine which method to use. Unfortunately, this supported laziness, and no backends other than *Agg support the new method (which can be 25x faster...) It would also enable you to introduce these optimizations, eg postscript macros, if you added it to PS. Search the dev archives for newstyle for length discussions. I'll be happy to advise further if you are interested in pursuing this. JDH |
From: Darren D. <dd...@co...> - 2005-12-01 15:37:47
|
On Wednesday 30 November 2005 16:18, John Hunter wrote: > >>>>> "Carl" == Carl Dr Kleffner <cmk...@gm...> writes: > > Carl> Hi matplot-list, drawing scatterplots with thousends of > Carl> scatter dots (marker='o') yields in bloated file sizes for > Carl> vector-formats (ps, svg). The reason for that is, that each > Carl> marker circle ist made of a large number of lines instead of > Carl> a simple arc (0..360 degree) i.e. > > Carl> Can this be patched easily? and btw what is the meaning of > Carl> the _newstyle attribute in the drawing methods? > > Originally the backends drew each marker with a separate function > call, which was slow and prevented optimizations. We introduced a new > API to make marker drawing fast, but rather than break all the > noncompliant backends we left a flag in for newstyle, meaning the new > API, to determine which method to use. Unfortunately, this supported > laziness, and no backends other than *Agg support the new method > (which can be 25x faster...) It would also enable you to introduce > these optimizations, eg postscript macros, if you added it to PS. > Search the dev archives for newstyle for length discussions. I'll be > happy to advise further if you are interested in pursuing this. I think the draw_markers function already exists for ps, I wrote it up a while back, but we ended up masking it when problems arose in the new API. Darren |
From: Carl D. K. <cmk...@gm...> - 2005-12-08 16:36:24
|
> --- Ursprüngliche Nachricht --- > Von: Darren Dale <dd...@co...> > An: mat...@li... > Betreff: Re: [Matplotlib-users] scatter with dots? > Datum: Thu, 1 Dec 2005 10:37:41 -0500 > > > I think the draw_markers function already exists for ps, I wrote it up a > while > back, but we ended up masking it when problems arose in the new API. > > Darren > I will look into this. I'm very short on time, so this may take some.... days. Drawing markers with postscript procedures seems to me the favorite solution. If anyone is interested in that stuff: I found a wonderfull online book: 'Mathematical Illustrations' from Bill Casselmann. http://www.math.ubc.ca/~cass/graphics/manual/ It is a postscript book from the mathematical viewpoint. Regards Carl -- GMX DSL-Flatrate 1 Jahr kostenlos* + WLAN-Router ab 0,- Euro* Bis 31.12.2005 einsteigen! Infos unter: http://www.gmx.net/de/go/dsl |
From: Carl D. K. <cmk...@gm...> - 2005-12-09 09:15:05
|
> --- Ursprüngliche Nachricht --- > Von: "Carl Dr. Kleffner" <cmk...@gm...> > An: mat...@li... > Kopie: Darren Dale <dd...@co...> > Betreff: Re: [Matplotlib-users] scatter with dots? > Datum: Thu, 8 Dec 2005 16:36:09 +0100 (MET) > > I will look into this. I'm very short on time, so this may take some.... > days. > Drawing markers with postscript procedures seems to me the favorite > solution. > If anyone is interested in that stuff: I found a wonderfull online book: > 'Mathematical Illustrations' from Bill Casselmann. > http://www.math.ubc.ca/~cass/graphics/manual/ > It is a postscript book from the mathematical viewpoint. > > Regards > > Carl > I'm now looking for another quick solution for postscript scatterplots: is there an easy way to activate the markers '.' or ',' for scatterplots with postscript backends? Carl -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie |