Andre Wobst schrieb:

>Hi Markus,
>
>On 23.02.06, Markus Meyer wrote:
>  
>
>>I'd like to have a bar-graph which has a line for y=0 in the middle, and
>>bars above and under the line. However, a small test for this
>>functionality looks totally wrong. What gives?
>>    
>>
>
>The bar style needs a bar position as provided by the parpos style.
>Unfortunately this style by default always start bars at the baseline.
>  
>
Works like a charm, thank you! Another question: I want to add a custom
axis to the bar graph, so that the axis shows a continuous value and not
the bar's names. I tried the following:

from pyx import *
import random

g = graph.graphxy(width=8,
       x=graph.axis.bar(painter=None),
       x3=graph.axis.lin(min=0, max=10, title="$t [s]$"))
g.plot(graph.data.list([(i,random.random()) for i in xrange(0,20)],
       xname=0, y=2), [graph.style.bar()])
g.writePDFfile("bar")

Can I change this so the x3 axis is drawn where normally the bar axis
would be?

TIA
Markus



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to