From: Joerg L. <jo...@us...> - 2006-03-10 13:32:33
|
Hi Sybren, On 10.03.06, Sybren Stüvel wrote: > I'm trying to get the multisubaxis.py bargraph example working, but I > get this error: > > $ python multisubaxis.py > Traceback (most recent call last): > File "multisubaxis.py", line 8, in ? > mynestedbaraxis = graph.axis.bar(defaultsubaxis=graph.axis.bar(dist=0)) > TypeError: __init__() got an unexpected keyword argument 'defaultsubaxis' > > I'm using Python 2.4.2 and PyX 0.7.1-1ubuntu2. It's not the latest > PyX, but it is the latest that's being shipped with Ubuntu. Since my > code is part of a server system, I'd like to stick to the Ubuntu > packages as much as possible. The bargraph system changed considerably with PyX 0.8, so you need to go back to the old examples which should be included under /usr/share/doc/python-pyx/examples (or some variant thereof). > If examples require a minimum version of PyX, it's usually a good idea > to include that in the example or its documentation. See here: http://pyx.sourceforge.net/examples/index.html "The following examples are part of the PyX release 0.8.1." Jörg |