From: Jae-Joon L. <lee...@gm...> - 2010-02-24 09:45:30
|
On Wed, Feb 24, 2010 at 3:56 AM, David Goldsmith <d_l...@ya...> wrote: > cmap='LUTSIZE' does not create an image: it is an invalid value for imshow's cmap argument. Many images are created successfully by my loop before cmap='LUTSIZE' without me calling cla, and Friedrich's soln. works great w/out me having to call cla. It DOES create an image at least in the svn version of matplotlib (although I consider it as a bug). But this may not be true in other version. As I said, without calling cla, you end up with bunch of overlapping images (unless hold is False). It DOES NOT mean that the results will be wrong. It only means that it will increase the drawing time and/or output size. You do not have to call cla if you don't care about these. You may check the number of images in the current figure by print len(ax.images) -JJ |