Re: [Matplotlib-users] matlab vs pylab png output

2009-01-14 Thread Eric Firing
Martinho MA wrote: > the script used and data file are at: > http://neptuno.fis.ua.pt/tmp/comp.html The blocks (quadrilaterals) defined by your data grid are quite a bit smaller than the png-file pixels, so perhaps it is not surprising that matlab and mpl (via Agg) might be using different strat

Re: [Matplotlib-users] matlab vs pylab png output

2009-01-14 Thread Martinho MA
the script used and data file are at: http://neptuno.fis.ua.pt/tmp/comp.html the script is very simple, just: from numpy import savez,load, ma import pylab data = load('data.npz') lon = data['lon'] lat = data['lat'] sst = data['sst'] mask = data['mask'] sst=ma.masked_where(mask,sst) pylab.pc

Re: [Matplotlib-users] matlab vs pylab png output

2009-01-13 Thread Darren Dale
Perhaps the interpolation needs to be set to 'nearest'? On Tue, Jan 13, 2009 at 3:33 PM, John Hunter wrote: > On Tue, Jan 13, 2009 at 12:16 PM, Martinho MA wrote: > > Hello, > > I have a problem saving png files created from data with missing values. > > The matlab and pylab outputs are very di

Re: [Matplotlib-users] matlab vs pylab png output

2009-01-13 Thread John Hunter
On Tue, Jan 13, 2009 at 12:16 PM, Martinho MA wrote: > Hello, > I have a problem saving png files created from data with missing values. > The matlab and pylab outputs are very different... pylab resolution is > poorer !? > > the saving commands from matlab and python are similar: > > matlab: > >