Hi James,
>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")
>---

Thank you for your proposal, but it is not exactly what I want;-) My problem 
with tickdists is, that it switches off the automatic partitioner: Using
d = [[0, 1], [3, 4], [2, 6], [5, 2], [200, 3]]
in your example does not look very nice...

I would like to have something like a "mintickdists", to guarantee that e.g. 
only Integers are used by the parter.

Axel
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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