Hi Carl,

On 25.07.06, Carl Bolduc wrote:
> from pyx import *
> 
> g = graph.graphxy(width=20,
>    x=graph.axis.lin(min=-15, max=15, title="SAGE"),
>    x2=None,
>    y=graph.axis.lin(min=-28, max=28, title="RT-PCR"),
>    y2=None
> )
> 
> #g.plot(graph.data.file("explevels.dat", x=1, y=2))
> g.plot(graph.data.file("explevels.dat", x=1, y=2, text=3), [
> graph.style.symbol(), graph.style.text()])
> 
> g.writeEPSfile("minimal")
> g.writePDFfile("minimal")
> ______________________________________________
> 
> To make it perfect, could I add the "y=x" function to this graph?

Why don't you just add this as a function? I.e.

plot(graph.data.function("y(x)=x"))

HTH,


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

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