|
From: TP <par...@fr...> - 2009-09-29 09:26:46
|
Hi everybody, I try to play with "sharex" feature. Then, I have been guided to the class "Grouper" of module cbook: http://matplotlib.sourceforge.net/api/cbook_api.html So I tried the following example: ############################## from matplotlib.cbook import * g = Grouper() g.join('a', 'b') ############################## I obtain: Traceback (most recent call last): File "test_grouper.py", line 4, in <module> g.join('a', 'b') File ".../matplotlib/cbook.py", line 1118, in join set_a = mapping.setdefault(ref(a), [ref(a)]) TypeError: cannot create weak reference to 'str' object What is the problem? Thanks in advance, Julien -- python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\ 9&1+,\'Z4(55l4('])" "When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." (first law of AC Clarke) |