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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
