Michael Droettboom wrote:
> I think I'm a little confused by the question.  From the Python
> perspective, everything in the Agg backend takes floats.  Agg
> actually has color types for both floating point and 8-bit-per-plane
> colors, though obviously it's converted to 8-bit-per-plane
> eventually.  But, of course, that is done on the fly without much
> memory copying, so I'm quite surprised that the speed up is
> significant...  Where exactly is this conversion happening, and how
> are you now avoiding it?  (Is this in code that is not checked in,
> perhaps?)

I was referring to _image.cpp and the quadmesh code in _backend_agg.cpp. 
  Both work directly with agg::rgba8, and can benefit from doing a color 
table lookup directly in 8-bit space instead of using floats and then 
converting.

Eric

> 
> As for the other backends, it's a mixed bag.  PDF, PS and Cairo want
> floats, SVG wants ints.  Personally, I just *like* floats better, as
> it feels more future proof, even though most people aren't using the
> extra color resolution now.  (Of course, if your plot relies on
> high-resolution color, you probably need to rethink your plot
> anyway... ;)
> 
> Cheers, Mike


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to