Andre, Joerg,
thanks a lot.
(I suspect I will come back soon with other questions...)
Best
-a-
On 26 Jul 2006, at 11:20, Joerg Lehmann wrote:
> Hi Andrea,
>
> On 25.07.06, andrea valle wrote:
>> I'd like to plot a series of graphs, in which edges are given a
>> certain
>> weight. How can I label edges in a simple way? Is there an attribute
>> of
>> connectors letting specify a label?
>
> Yes, there is the new text decorator (although it doesn't seem to be
> documented). A simple example is attached.
>
> HTH,
>
> Jörg
>
> from pyx import *
>
> c = canvas.canvas()
>
> b1 = box.rect(0, 0, 1, 1, relcenter=[0.5, 0.5])
> b2 = box.rect(4, 2, 1, 1, relcenter=[0.5, 0.5])
>
> c.stroke(connector.arc(b1, b2), [deco.text("P", angle=90)])
>
> c.writeEPSfile('test')
>
>
> -----------------------------------------------------------------------
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user