Hi Patrick,
On 17.02.06, Patrick Pletscher wrote:
[ snip ]
> Here a small test program:
>
>
> from pyx import *
> histo = [[1, 2353], [2, 80], [3, 18], [4, 14], [5, 12], [6, 12]]
>
> g = graph.graphxy(width=8,
> x=graph.axis.linear(min=0, max=12, title="rank"))
> g.plot(graph.data.list(histo, x=1, y=2),
> [graph.style.histogram(autohistogramaxisindex=0, steps=0)])
> g.writePDFfile("minimal")
>
> This works, however if I add a
> y=graph.axis.log(min=1, max=8000, title="number")
You have to add fromvalue=1 (or whatever fits) to arguments of the
histogram style:
graph.style.histogram(autohistogramaxisindex=0, steps=0, fromvalue=1)
Best,
Jörg
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user