From: Brad M. <bra...@gm...> - 2011-12-20 07:44:25
|
Hi, I am plotting a grid with pcolor. Below I've got a 1000x1000 grid. xi=linspace(-0.1,x[-1]+2,1000) > yi=linspace(-0.1,maxfreq+10,1000) > print 'Calling griddata...' > zi=griddata(x,y,z,xi,yi,interp='nn') > plt.pcolor(xi,yi,zi,cmap=plt.cm.hot) I am able to plot this on my computer, but it's very slow and monitoring 'top' while python is running shows it using up quite a bit of memory. This data set that I'm currently using is only about 1/10 of what I eventually want to plot. While I may be able to drop the resolution to some degree, I'd like to be able to speed this up if possible. Google searches reveal different people talking about imshow and pcolormesh being faster than pcolor. Is this true? How could I modify my above data (which is in xi,yi,and zi) to work with imshow (which seems to take 1 argument for data). Thanks for the help. Brad |