-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey guys,

I came across some weird --at least in IMHO-- behavior of the axis of
the graph module. Imagine you want to plot a x-y graph also depicting
the x2 and y2 axis which is the default. But I'd like to change for
instance the line width of all axes. So a minimal example would be:

from pyx import *

d = graph.data.list([(1,  0.3),
                     (2,  0.5),
                     (3, -0.3),
                     (4,  0.8),
                     (5,  0.5)], x=1, y=2)

mypainter =
graph.axis.painter.regular(basepathattrs=[style.linewidth.THIck])
g = graph.graphxy(width=8,
                  x=graph.axis.lin(painter=mypainter),
                  y=graph.axis.lin(painter=mypainter))
g.plot(d, [graph.style.line()])
g.writeEPSfile("xy_axis")


The manual claims now x2 and y2 are linked axes to x and y. This is not
true with respect to the attribute linewidth.THIck. You get the default
line width for x2, y2. Just saying

g = graph.graphxy(width=8,
                  x=graph.axis.lin(painter=mypainter),
                  y=graph.axis.lin(painter=mypainter),
                  x2=graph.axis.lin(painter=mypainter),
                  y2=graph.axis.lin(painter=mypainter))

doesn't help either. What's the right syntax to get the demanded result?
Thanks in advance ;-)

Micha
- --
- --------------------------------------------------------------------
Michael Strass    *     mailto:[EMAIL PROTECTED]
Lehrstuhl fuer Theoretische Physik I * Universitaetsstr. 1/Geb. Nord
D-86135 Augsburg              *               Tel.: +49-821-598-3230
- --------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDi3SQnDFQHBNYmYcRAgPvAKDAIam4rKwbjbprhKnAMywCNIYYWgCeN7I9
I270A/hnBB/YVfETU4xa6cw=
=MmEM
-----END PGP SIGNATURE-----


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
PyX-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to