On Jul 14, 2009, at 3:12 PM, per freem wrote:

Hi Tony,

thanks for the pointer. that code does not run for me, it generates the following error:

ttributeError Traceback (most recent call last)

....

/Library/Python/2.5/site-packages/matplotlib/rcsetup.pyc in validate_color(s)
    160 def validate_color(s):
    161     'return a valid color arg'
--> 162     if s.lower() == 'none':
    163         return 'None'
    164     if is_color_like(s):

AttributeError: 'list' object has no attribute 'lower'
WARNING: Failure executing file: <color_cycle.py>

any idea what might be wrong?

Hmm, it looks like there was a fix added a couple of months ago (svn revision 7164). If you're on trunk, then updating it should fix this problem. If you're not on trunk: I don't think any official releases have occurred since this fix, so I don't think updating to the last official release will help.

In any case, I think this error only affects the ``cycle_cmap`` function in the code (calls to ``cmap_intervals`` should work fine). If you comment out the 4 lines of code after the comment "Change the default color cycle", I believe everything should work fine.

-Tony
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to