Thanks, Ben. I'll install 1.0.1. I'm aware of the situation about Fedora 10.
Regards, Jon Benjamin Root-2 wrote: > > On Fri, Jul 1, 2011 at 10:02 PM, JonBL <jc.bl...@bigpond.net.au> wrote: > >> >> I've used Add/Remove Software to install >> python-matplotlib-0.98.5.2-2.fc10(i386) and >> python-matplotlib-tk-0.98.5.2-2.fc10(i386) on my fedora 10 box, plus 11 >> dependencies, including Tkinter. Some matplotlib examples, eg >> pylab_examples >> Examples/arctest.py works nicely, but many do not as presented. >> >> Example api Examples/barchart_demo raises the following traceback when >> executed as-is: >> >> [jon@einstein matplotlib-examples]$ ./barchart.py >> Traceback (most recent call last): >> File "./barchart.py", line 18, in <module> >> error_kw=dict(elinewidth=6, ecolor='pink')) >> File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1656, >> in bar >> ret = gca().bar(*args, **kwargs) >> File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 4075, >> in >> bar >> r.update(kwargs) >> File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 548, >> in >> update >> raise AttributeError('Unknown property %s'%k) >> AttributeError: Unknown property error_kw >> >> (I've copied the example code into script barchart.py, and run it from >> there.) >> >> The problem line is: >> >> rects1 = plt.bar(ind, menMeans, width, >> color='r', >> yerr=menStd, >> error_kw=dict(elinewidth=6, ecolor='pink')) >> >> If I replace this with: >> >> rects1 = plt.bar(ind, menMeans, width, >> color='r', >> yerr=menStd) >> >> and do the same thing for the rects2 statement, the demonstration then >> presents the bar chart. >> >> The problem seems to lie somewhere with the error_kw arg being passed to >> method plt.bar. Is there something else I need to do to get the provided >> examples to work as coded? >> >> TIA, >> Jon >> > > Jon, > > The examples on the website are for version 1.0.1, which is a couple of > years older than version 0.98. Many examples utilizes new features that > have since been added to matplotlib. > > Also, as a side note, Fedora 10 has stopped receiving updates of any kind > about 2 years ago. This also means security updates. > > Ben Root > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/Exceptions-on-Some-Demos-tp31977899p31981750.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users