Looping through all the built-in colormaps

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

···

On Wed, Feb 24, 2010 at 3:56 AM, David Goldsmith <d_l_goldsmith@...9...> 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.

Hi! Sorry for the really elementary Q's but I'm not having much luck searching the User Guide:

How do I turn all ticks off (i.e., the labels and the tick mark lines, on both axes)?

Thanks!

DG

Hi! Sorry for the really elementary Q’s but I’m not having much luck searching the User Guide:

How do I turn all ticks off (i.e., the labels and the tick mark lines, on both axes)?

Thanks!

DG

Too dry but it is what you want:

I[77]: plt.plot(range(10))
O[77]: [<matplotlib.lines.Line2D object at 0xe976a6c>]

I[78]: ax = plt.gca()

I[85]: ax.xaxis.set_major_locator(pylab.NullLocator())

I[86]: ax.yaxis.set_major_locator(pylab.NullLocator())

···

On Wed, Feb 24, 2010 at 8:48 PM, David Goldsmith <d_l_goldsmith@…9…> wrote:


Download Intel® Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find bugs

proactively, and fine-tune applications for parallel performance.

See why Intel Parallel Studio got high marks during beta.

http://p.sf.net/sfu/intel-sw-dev


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

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


Gökhan