pcolor

Dear list,

I have a question concerning pcolor.
I am trying to plot a huge 2d array 15000x10000.
And in top I see that the program already uses 31Gb of ram and it grows.
Is this expected behaviour?
Why it needs so much memory?
the sctipt is simple:

import matplotlib
import numpy as np
import matplotlib.pyplot as plt

from numpy.random import rand

import mpl_toolkits.basemap as bm

if __name__ == "__main__":

    print matplotlib.__version__
    print matplotlib.__revision__
    print matplotlib.__date__
    
    print 'basemap'
    print bm.__version__
    
    print 'numpy'
    print np.__version__

    x = rand(15000,10000)
    #print x
    plt.pcolor(x)
    plt.savefig('test_pcolor.png', bbox_inches = 'tight')
    print "Hello World"

matplotlib version is:
1.0.0
$Revision: 8503 $
$Date: 2010-07-06 08:56:31 -0500 (Tue, 06 Jul 2010) $

should I update?

thank you for any help

···

--
Oleksandr Huziy
--
View this message in context: http://old.nabble.com/pcolor-tp31300362p31300362.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Ok, it works ok with pcolormesh, sorry for bothering you.

···


Oleeksandr

2011/4/1 sanGuziy <guziy.sasha@…287…>

Dear list,

I have a question concerning pcolor.

I am trying to plot a huge 2d array 15000x10000.

And in top I see that the program already uses 31Gb of ram and it grows.

Is this expected behaviour?

Why it needs so much memory?

the sctipt is simple:

import matplotlib

import numpy as np

import matplotlib.pyplot as plt

from numpy.random import rand

import mpl_toolkits.basemap as bm

if name == “main”:

print matplotlib.__version__

print matplotlib.__revision__

print matplotlib.__date__





print 'basemap'

print bm.__version__



print 'numpy'

print np.__version__





x = rand(15000,10000)

#print x

plt.pcolor(x)

plt.savefig('test_pcolor.png', bbox_inches = 'tight')

print "Hello World"

matplotlib version is:

1.0.0

$Revision: 8503 $

$Date: 2010-07-06 08:56:31 -0500 (Tue, 06 Jul 2010) $

should I update?

thank you for any help

Oleksandr Huziy

View this message in context: http://old.nabble.com/pcolor-tp31300362p31300362.html

Sent from the matplotlib - users mailing list archive at Nabble.com.


Create and publish websites with WebMatrix

Use the most popular FREE web apps or write code yourself;

WebMatrix provides all the features you need to develop and

publish your website. http://p.sf.net/sfu/ms-webmatrix-sf


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users