Re: [Matplotlib-users] imshow without resampling

2009-11-30 Thread Geoffrey Ely
Hi, I found this old thread discussing the possibility of placing un- resampled images in PS, PDF and SVG. It was questioned weather there were any potential users for such a feature to justify the effort. If it makes a difference, here is one user who very much welcome it. I need to overlay p

Re: [Matplotlib-users] imshow without resampling

2009-04-02 Thread Thomas Robitaille
I've looked into this some more, and while pcolor draws pixels inefficiently as polygons, pcolorfast does appear to be writing the data as a bitmap into the eps file, so this is closer to what I need. However, while this works great with the SVG driver, it seems that pcolorfast still produce

Re: [Matplotlib-users] imshow without resampling

2009-03-31 Thread Thomas Robitaille
The problem with pcolor is that it draws all the pixels as polygons, which is very inefficient in terms of file size. For example, import matplotlib matplotlib.use('PS') from matplotlib.pyplot import * import numpy as np image = np.random.random((100,100)) fig = figure(figsize=(4,4)) ax = fig

Re: [Matplotlib-users] imshow without resampling

2009-03-31 Thread John Hunter
On Tue, Mar 31, 2009 at 2:56 PM, Thomas Robitaille wrote: > Hello, > > I am using matplotlib to create postscript and SVG files. I am > currently using imshow to show the contents of an array, but this > means that when saving vector graphics files, matplotlib resamples the > image/array onto a fi

[Matplotlib-users] imshow without resampling

2009-03-31 Thread Thomas Robitaille
Hello, I am using matplotlib to create postscript and SVG files. I am currently using imshow to show the contents of an array, but this means that when saving vector graphics files, matplotlib resamples the image/array onto a finer grid. What I would like, is for code such as this: import