Hi Axel,

> In my actual problem, depending on the size of the graph and
> the size of the fonts, i get sometimes
> 0,5,10,15,20 (which is exactly what I want)
> and sometimes
> 0,2.5,5,7.5,10,12.5,15,17.5,20.

the "tickdists" argument to the partitioner is what you want. Have a
look at this program: if you remove the parts about p and xaxis, you
should see the non-integer ticks appearing.

---
#!/usr/bin/env python

from pyx import *

d = [[0, 1], [3, 4], [2, 6], [5, 2], [6, 3]]

p = graph.axis.parter.linear(tickdists=[1])
xaxis = graph.axis.linear(parter=p)
g = graph.graphxy(width=4.5, x=xaxis)
g.plot(graph.data.list(d, x=1, y=2))
g.writeEPSfile("test")
---


James

--
James McDermott
PhD candidate in Music Technology
CSG026,
Dept. Computer Science and Information Systems,
University of Limerick,
Ireland.
www.skynet.ie/~jmmcd

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to