From: John H. <jdh...@ac...> - 2004-11-30 20:57:36
|
>>>>> "Nicolas" == Nicolas Gruel <hu...@ya...> writes: Nicolas> Hello, I have some question on the legend. Nicolas> the first is perhaps a bug: Nicolas> I was trying something like: Nicolas> plot([1,2,3],[2,3,4],label='toto') legend() Nicolas> I can't obtain a legend, instead I have an error Nicolas> message. So perhaps I didn't understand at all the Nicolas> message I obtain with: help(legend) (it's possible with Nicolas> my poor english :) ) or there are a problem. Yep, it's a bug. Replace the indicate line from axes.py loc = kwargs.gry('loc', 1) with loc = kwargs.get('loc', 1) ^^^ Note to self: run pychecker more often. Nicolas> second things: I would like to have the box create by the Nicolas> legend commande behind my plot and not above because it Nicolas> hide some of the point. Perhaps another solution is to Nicolas> put the box bacground in "alpha mode" but I don't know Nicolas> how to do this. http://sourceforge.net/mailarchive/forum.php?thread_id=6039503&forum_id=33405 JDH |