Salut André,

I have a little problem with linkedaxis. I want to plot two data sets,
which are to be plotted in differents graphs. The second should be
clipped according to whatever the first graph has chosen as the y
axis. But, the linkedaxis somehow extends such that the whole dataset
is plotted. Is this behavior intended?

If yes, which parameter should I use as the min/max argument of the
y-axis in h? The axis of g has no explicit min/max:
  g.axes["y"].axis.min is None
And the data min/max is not what I want. There should be something in
the parter which I do not find ...

Here is a minimal example:

------------------------------------
from pyx import *

g = graph.graphxy(width=10)
g.plot(graph.data.file("data1.dat", x=1, y=2), [graph.style.line()])
g.finish() # fix the axes of g

h = graph.graphxy(width=10, y=graph.axis.linkedaxis(g.axes["y"]))
h.plot(graph.data.file("data2.dat", x=1, y=2), [graph.style.line()])

g.insert(h, [trafo.translate(0, g.bbox().bottom()-h.bbox().top()-0.5)])
g.writePDFfile("minimal")
------------------------------------

Many thanks,
  Michael

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel

Reply via email to