Hi!

On 7/25/06, **Andre Wobst** <wobsta@users.sourceforge.net> wrote:

This might work, if I abreviate the names, and extend the lenght of the axis.

Looks like what I need, but the layout is a mess... Can you point me to the doc which explains how to position different items (graph and legend) from one another?

At first you might consider to label the dots itself. This might be a

solution in certain cases. However, your case doesn't look well.

Anyway, the corresponding code would look like:

------------------------------------

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, text=3), [graph.style.symbol(), graph.style.text()])

g.writeEPSfile("minimal")

------------------------------------

This might work, if I abreviate the names, and extend the lenght of the axis.

But back to what you really want: Unfortunately due to some missing

features in the graph key system, we currently can have a single graph

key item per data set only (but this is already on my todo list). On

the other hand you want to alter the symbols as well. You could do

this by an own graph style. Or by using a set of data instances and

the usual symbol style. So lets try this, since it also solves the

graph key problem:

------------------------------------

from pyx import *

d = graph.data.file("explevels.dat", x=1, y=2, text=3)

ds = [graph.data.list([(x, y)], x=1, y=2, title=text)

for x, y, text in zip( d.columns['x'], d.columns['y'], d.columns['text'])]

g = graph.graphxy(width=8, key=graph.key.key(),

x=graph.axis.lin(min=-15, max=15, title="SAGE"),

y=graph.axis.lin(min=-30, max=30, title="RT-PCR"),

)

g.plot(ds)

g.writeEPSfile("minimal")

------------------------------------

Looks like what I need, but the layout is a mess... Can you point me to the doc which explains how to position different items (graph and legend) from one another?

Thanks!

carl