Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread Eric Bruning
Thanks for your work on this patch JJ, glad to see it ready to go! -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Koda

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread John Hunter
On Tue, May 5, 2009 at 2:54 PM, John Hunter wrote: > On Tue, May 5, 2009 at 2:52 PM, John Hunter wrote: >> On Tue, May 5, 2009 at 2:49 PM, Jae-Joon Lee wrote: >>> I'm attaching the revised patch (I may split the patch for commit). >> >> Still encountering troubles > > Oops, ignore me. Look

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread John Hunter
On Tue, May 5, 2009 at 2:52 PM, John Hunter wrote: > On Tue, May 5, 2009 at 2:49 PM, Jae-Joon Lee wrote: >> I'm attaching the revised patch (I may split the patch for commit). > > Still encountering troubles Oops, ignore me. Looks like I just reapplied the *old* patch that was laying aroun

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread John Hunter
On Tue, May 5, 2009 at 2:49 PM, Jae-Joon Lee wrote: > I'm attaching the revised patch (I may split the patch for commit). Still encountering troubles jo...@flag:misc> python rasterization_demo.py Traceback (most recent call last): File "rasterization_demo.py", line 41, in ? ax4.set_ra

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread Jae-Joon Lee
I'm attaching the revised patch (I may split the patch for commit). Regards, -JJ On Tue, May 5, 2009 at 3:22 PM, Eric Bruning wrote: > To avoid confusion, how about renaming draw_wrapper._rasterized to > draw_wrapper._supports_rasterization ? > > This helps to distinguish from artist._rasteri

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread Eric Bruning
To avoid confusion, how about renaming draw_wrapper._rasterized to draw_wrapper._supports_rasterization ? This helps to distinguish from artist._rasterized, which has a different purpose. The lack of consistency in decoration language for different artists is my fault. It reflects the different w

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread Jae-Joon Lee
Thanks John, Sorry for the buggy patch. The error occurs when usetex=False and ps.useafm=False, which was not my setup. Here is a patch to fix it. --- lib/matplotlib/backends/backend_ps.py.orig 2009-05-05 14:44:31.0 -0400 +++ lib/matplotlib/backends/backend_ps.py 2009-05-05 14:44:3

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread John Hunter
On Tue, May 5, 2009 at 1:08 PM, Jae-Joon Lee wrote: > Any comment or suggestion will be welcomed. > I'm planning to commit this change to the svn soon, unless others come > up with some issues. I am getting the following error when I test on svn HEAD jo...@flag:misc> python rasterization_demo.p

Re: [matplotlib-devel] Rasterized artists have wrong transform

2009-05-05 Thread Jae-Joon Lee
I'm attaching a slightly modified version of the patch, originally by Eric Bruning. I changed the name to "allow_rasterization", and added some code to check if the draw method is decorated when set_rasterized is called (I'll be glad to hear any better idea for this). The second patch is to let yo