Re: [Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-23 Thread Paul Hobson
Sorry I have to be so brief, but just like the error says, you fed the legend function the wedges returned by the pie command. But legend can't handle wedges. As the proxy artist tutorial hints, you need to feed it rectangles created manually (i.e., outside of any plotting commands). Hope that

Re: [Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-23 Thread Jae-Joon Lee
I do not have any access to mpl 0.98 so I cannot tell for sure. My guess is that you have been using a feature that has not been intended, that has fixed at some point. The first argument to legend should be a list of artists. And pie2010 is a tuple of a list of patches and a list of texts, i.e.,

[Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-22 Thread oyster
the following code runs ok with py2.4 and matplotlib.0.98.3 however no legend appears with py2.7.3 and matplotlib-1.2.1/1.3. and I get [quote] e:\prg\py\python-2.7.3\lib\site-packages\_matplotlib\matplotlib\legend.py:629: U serWarning: Legend does not support [matplotlib.patches.Wedge object at