Hi,

Am 04.06.2013 um 11:42 schrieb Mico Filós:
> Is there a way to specify the offset of the dropped spines in visual 
> coordinates?

Officially not. It is always interesting for us to learn about missing 
features. I'll make myself a note to eventually include this feature in future 
releases.

Anyway, for the moment you could insert a translation just like it is done by 
xaxisat. Here's how it could look like:

    from pyx import *

    def translateaxis(axis, trafo):
        c = canvas.canvas()
        for layer, subcanvas in axis.canvas.layers.items():
            c.layer(layer).insert(subcanvas, [trafo])
        axis.canvas = c

    g = graph.graphxy(width=8)
    g.plot(graph.data.function("y(x)=sin(x)/x", min=-15, max=15))
    g.dolayout()
    translateaxis(g.axes["x"], trafo.translate(0, -1))
    g.writePDFfile()

HTH,


André

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   [email protected], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to