Hi, I need help again :(

I have several source file that generated nice plots that don't work anymore, here is an example:
___________________________
from pyx import *

text.set(mode="latex")

mynestedbaraxis = graph.axis.bar(defaultsubaxis=graph.axis.bar(dist=0))

g = graph.graphxy(width=8, x=mynestedbaraxis,
    y=graph.axis.lin(min=0, max=60, title="Number of SAGE tags"),
    y2=graph.axis.lin (min=0, max=3500000, title="Number of copies/$\mu$g of total RNA"),
    x2=None)

g.plot([graph.data.list([["GDX", 0], ["DHT", 53]], xname=1, y=2),
        graph.data.list([["GDX", 3324927], ["DHT", 2738075]], xname=1, y2=2)],
       [graph.style.barpos(fromvalue=0, subnames = ["SAGE", "Q\_RT-PCR"]), graph.style.bar(barattrs=[color.palette.ReverseGray])])

g.text(g.width/2, g.height + 0.5, "Acyl-Coenzyme A dehydrogenase very long chain",
       [text.halign.center, text.valign.bottom])

g.writeEPSfile("acadvl")
___________________________

I get this error now:
___________________________
Traceback (most recent call last):
  File "lpl.py", line 19, in ?
    [graph.style.barpos(fromvalue=0, subnames = ["SAGE", "Q\_RT-PCR"]), graph.style.bar(barattrs=[color.palette.ReverseGray])])
TypeError: __init__() got an unexpected keyword argument 'subnames'
___________________________

Here is how it was looking before: http://agora.ulaval.ca/~cabol36/acadvl.png
I guess that i was using a different version of Pyx. What should I do now?

Thanks,

carl
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to