[Matplotlib-users] Savefig bug with Patches

2009-08-24 Thread Peter-Jan Randewijk
Dear All, I came across this peculiar bug when using patches together with savefig. I first want to display the contour plot of the vector potentials in a electrical machine, and the the contour plot of the flux density. If I first define the patches (for the yoke and the magnets) and then the f

Re: [Matplotlib-users] savefig bug

2009-04-23 Thread Thomas Robitaille
It works great now - thanks for fixing this! Thomas On Apr 23, 2009, at 10:29 AM, Michael Droettboom wrote: > I think Jae-Joon's assesment is correct, since the logical dpi in PS > is hardcoded to 72.0. I have made this change in the SVN repository. > > Mike > > Thomas Robitaille wrote: >> Th

Re: [Matplotlib-users] savefig bug

2009-04-23 Thread Michael Droettboom
I think Jae-Joon's assesment is correct, since the logical dpi in PS is hardcoded to 72.0. I have made this change in the SVN repository. Mike Thomas Robitaille wrote: > Thanks for your quick reply! > > I'll be patient and wait for the fix to be made in the SVN repository, > rather than tryin

Re: [Matplotlib-users] savefig bug

2009-04-21 Thread Thomas Robitaille
Thanks for your quick reply! I'll be patient and wait for the fix to be made in the SVN repository, rather than trying to patch it myself. Do I need to add any information to the bug report? Best, Thomas On Apr 21, 2009, at 1:06 PM, Jae-Joon Lee wrote: > I can reproduce this bug with the c

Re: [Matplotlib-users] savefig bug

2009-04-21 Thread Jae-Joon Lee
I can reproduce this bug with the current svn. It works correctly If you set dpi=72, but it seems that it would not be an option in your case. It seems to me that this is related with the change in r6847 that Michael made. http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/

[Matplotlib-users] savefig bug

2009-04-21 Thread Thomas Robitaille
Hi, I've come across a bug with the savefig method when using the dpi= argument and saving an EPS file. If you try the following code, you will see that the frame is incomplete. Is there a way to solve this from a user point of view? --- import matplotlib matplotlib.use('Agg') from matplot