unexpected keyword argument error while running legend_demo3.py

Hi,

I am getting following error while running the 'legend_demo3.py' from the examples.

exec codeObject in __main__.__dict__
  File "D:\nitinb\SoftwareSources\SVNPlot\legendtest.py", line 13, in <module>
    ax1.legend(loc=1, ncol=3, shadow=True)
  File "F:\Python25\Lib\site-packages\matplotlib\axes.py", line 3617, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'ncol'

I am using ActivePython version 2.5.2 and Matplotlib version 0.98.3

Regards
Nitin

We use the svn version of matplotlib to generate the website, and ncol
is a recent feature not in the main release yet. You can checkout the
svn code following the instructions at
http://matplotlib.sourceforge.net/devel/coding_guide.html

I have added a note on the gallery warning people that not all the
images are available in the latest release with a pointer to the svn
instructions.

But we would like to get a release out ASAP!

JDH

···

On Wed, Dec 3, 2008 at 9:15 AM, Nitin Bhide <nitinbhide@...9...> wrote:

Hi,

I am getting following error while running the 'legend_demo3.py' from the examples.

exec codeObject in __main__.__dict__
File "D:\nitinb\SoftwareSources\SVNPlot\legendtest.py", line 13, in <module>
   ax1.legend(loc=1, ncol=3, shadow=True)
File "F:\Python25\Lib\site-packages\matplotlib\axes.py", line 3617, in legend
   self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'ncol'

I am using ActivePython version 2.5.2 and Matplotlib version 0.98.3