Re: [matplotlib-devel] imshow with PS backend

2006-08-01 Thread JIM MacDonald
> There are two kinds of images in matplotlib -- AxesImage and > FigureImage. By definition, the AxesImage is interpolated to fit into > the Axes box. You can control the aspect ratio of the interpolation, > but it will be interpolated. FigureImage, on the other hand, performs > a pixel dump to

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread John Hunter
> "JIM" == JIM MacDonald <[EMAIL PROTECTED]> writes: JIM> My second problem involved the resolutions of the image. I'd JIM> like to preserve the resolution of my image in the PS output, JIM> but I can't figure out how to stop the image being resized JIM> and interpolated. Obv

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread JIM MacDonald
> I don't think this is a problem with the postscript backend. You're rescaling > the image in your script. Try something like this: > > from pylab import * > > rc('text', usetex=True) > rc('ps', usedistiller="xpdf") > > figure(1,figsize=(6, 4)) > im=imread('image.png') > imshow(im,interpolation='n

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread JIM MacDonald
> Would you post an example where the ps2pdf flags make a big difference on the > output? I just tried with the above png, but I cant tell the difference > between the results with/without the new flags. http://jimmacdonald.co.uk/matplotlib/MPD_SinPulse_g0.500.png JIM ---

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread Gael Varoquaux
On Mon, Jul 31, 2006 at 10:19:46AM -0400, Darren Dale wrote: > I see. Thanks for pointing this out and providing the solution. The flags you > suggested are passed to ps2pdf as of svn 2639. Great ! Thanks. I like open source software so much because of these little details :->. --

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread Darren Dale
On Monday 31 July 2006 10:05, Gael Varoquaux wrote: > On Mon, Jul 31, 2006 at 10:01:23AM -0400, Darren Dale wrote: > > Would you post an example where the ps2pdf flags make a big difference on > > the output? I just tried with the above png, but I cant tell the > > difference between the results wi

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread Gael Varoquaux
On Mon, Jul 31, 2006 at 10:01:23AM -0400, Darren Dale wrote: > Would you post an example where the ps2pdf flags make a big difference on the > output? I just tried with the above png, but I cant tell the difference > between the results with/without the new flags. Last image of http://scipy.org/

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread Darren Dale
On Monday 31 July 2006 09:32, JIM MacDonald wrote: > > I'll look into this soon. I'm hesitant to add another rc option, maybe we > > can consider using these settings as the defaults. I'll post again after > > I have had a chance to play with it. > > Defaulting to lossless FlateEncode compression s

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread Darren Dale
On Monday 31 July 2006 09:32, JIM MacDonald wrote: > > The resolution for Postscript is 72 dpi, and I'm not sure this can be > > changed. Would you send me an example postscript file along with the > > original png? > > Sure, > http://jimmacdonald.co.uk/matplotlib/image.png > http://jimmacdonald.co

Re: [matplotlib-devel] imshow with PS backend

2006-07-31 Thread JIM MacDonald
> I'll look into this soon. I'm hesitant to add another rc option, maybe we can > consider using these settings as the defaults. I'll post again after I have > had a chance to play with it. Defaulting to lossless FlateEncode compression seems like a good idea, if the file is too big you can always

Re: [matplotlib-devel] imshow with PS backend

2006-07-30 Thread Gael Varoquaux
On Thu, Jul 27, 2006 at 01:33:42PM +0100, JIM MacDonald wrote: > Another way to do it is to pass extra > command line options to ps2pdf (-dAutoFilterColorImages=false > -sColorImageFilter=FlateEncode should do it for colour images). I > thought embedding it in the PS file would be more flexible.

Re: [matplotlib-devel] imshow with PS backend

2006-07-29 Thread Darren Dale
On Thursday 27 July 2006 8:33 am, JIM MacDonald wrote: > Hi, > > I've just moved from MATLAB to matplotlib, and I'm really impressed > with the quality of the PS figures it generates with usetex and the > xpdf distiller. Glad to hear it. > I've hit a couple of problems though [...] > The first p