I'm trying to use the manyaxes as for the example online. 

But instead of a function, I am pulling data from a file. I can't get the second
data line drawn to the y2 axis - it is always drawn using the y axis.

g = graph.graphxy(width=gw, height=8, key=graph.key.key(pos="bl"), 
                    x=graph.axis.linear(),
                    y=graph.axis.lin(), y2=graph.axis.lin(min=0, max=1)
                    );

g.plot(graph.data.file(infile, x=1, y=2, title="Charge"),
       styles=[graph.style.line([color.rgb.red,
                                 style.linestyle.solid,
                                 style.linewidth.thick])])

#Plot the second line
g.plot(graph.data.file(infile, x=1, y=3, title ="Hydrophobicity"),
       styles=[graph.style.line([color.rgb.green,
                                 style.linestyle.solid,
                                 style.linewidth.thick])]);

Congrats on the excellent graphing tool, BTW.

Thanks for any help,
Chris



-------------------------------------------------------
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

Reply via email to