I'm using Pyx to plot this file:
________________________________________________________
SAGE Q_RT-PCR Genes
9.61 22.36 Adiponectin
5.73 -19.16 Acyl-Coenzyme A dehydrogenase, very long chain
-8.46 -21.25 1-acylglycerol-3-phosphate O-acyltransferase 2
-10.68 -26.45 Fatty acid synthase
8.53 23.44 Lipoprotein lipase
9.39 23.77 Cell death-inducing DFFA-like effector c
5 20.65 Angiotensinogen
7.73 23.93 Neuronatin
________________________________________________________
My actual script looks like this:
________________________________________________________
from pyx import *
g = graph.graphxy(width=8,
x=graph.axis.lin(min=-15, max=15, title="SAGE"),
y=graph.axis.lin(min=-30, max=30, title="RT-PCR"),
)
g.plot(graph.data.file ("explevels.dat", x=1, y=2))
g.writeEPSfile("minimal")
g.writePDFfile("minimal")
________________________________________________________
I would like to add a legend for each of the point. So each point should have a different shape and/or color and the legend should correspond to the 3rd column of the input file (Genes).
How should I proceed?
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
