From: Alexis P. <ale...@so...> - 2021-03-18 13:39:40
|
Hi, The following code fails with pyx.graph.axis.axis.NoValidPartitionError. from pyx import * xaxis = graph.axis.log(min=10, max=1000) yaxis = graph.axis.log(min=1, max=100) g = graph.graphxy(width=1.2, x=xaxis, y=yaxis) g.writePDFfile() I don't really understand why PyX is not able to find a partition. You can check that the problem disappears with `width=1.3` or with `unit.set(xscale=0.8)`. I solved by it by providing explicitely the ticks, but I feel that PyX should be able to find a solution (as it does for the y axis). ticks = [graph.axis.tick.tick(x, label=a) for x, a in zip([10, 100, 1000], ["10", "", "1000"])] xaxis = graph.axis.log(min=10, max=1000, parter=None, manualticks=ticks) I don't know if this qualifies as a bug, or if it is expected behavior. Cheers, Alexis |