[Matplotlib-users] matplotlib and large array

2010-06-09 Thread Massimo Di Stefano
Hi All, i need to work with a relative large images 60 mb (single band geotiff file) i store it in python as a numpy array using python-gdal, the array dinension is (7173 X 7924) single band image, but tring to display it with matshow/imageshow or other matplotlib functions i have that python

Re: [Matplotlib-users] matplotlib and large array

2010-06-09 Thread Joe Kington
One workaround is to try converting it to a PIL image first. For whatever reason, imshow chokes on large arrays, but handles PIL images of the same array just fine. However, you'll need to set the colormap and such through PIL, which can be a bit frustrating if you're unfamiliar with it. Also,