On Thu, Jan 27, 2011 at 10:07 AM, C M <cmpyt...@gmail.com> wrote:
> I know the 2nd problem is that a dictionary cannot have a mutable
> object like a list as a key.  But previously, as I said, I was able to
> call line, (with the comma) and it would work.  In fact, line, with a
> comma gives this type:
>

If you just want a hashable object, can you just cast it to a tuple?


  bars = self.subplot.bar(fake_data, fake_data )
  bars_tuple = tuple(bars)

bars_tuple can be used as a dictionary key.

Regards,

-JJ

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to