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
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
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
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:
> >
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:
>>print -dpng -r80 test_matlab.png
python:
>>pylab.savefig('test_pyl