From: Benjamin R. <ben...@ou...> - 2012-03-19 18:43:27
|
On Mon, Mar 19, 2012 at 1:36 PM, Moore, Eric (NIH/NIDDK) [F] < eri...@ni...> wrote: > From: Benjamin Root [mailto:ben...@ou...] > Sent: Monday, March 19, 2012 2:00 PM > To: Joshua Lande > Cc: mat...@li... > Subject: Re: [Matplotlib-users] Strange compression of matplotlib's eps > figures > > ... > > Using Firefox, I see no difference between the two images. What are you > using? > > Ben Root > > > All of the rows and columns are not the same width in the two images. Not > limited to saving as eps. Also true if you change the example to png and > then zoom in. Since imshow more than likely always saves as a raster, I'll > bet the real problem is the number of pixels doesn't divide evenly into the > size of z in Joshua's example. > > Eric > > Ah, I see. Yeah, that's not a bug, but a simple limitation of integer math. We have introduced a new option for interpolation in v1.1.0 that might help. Pass in the string "none" (not that python keyword) to the interpolation kwarg in imshow and maybe your results will look better. Ben Root |