Hi Andrea,
On 25.07.06, andrea valle wrote:
> I'm a ConTeXt user but also a Python user, so I prefer PyX to Metapost.
> As a newbie, I started generating drawings for the a series of books.
> Nice.
>
>
> 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?
> It would be nice.
That's what decorators are for. The help us to not always implement
the same thing all over the place. You can do:
c.stroke(p, [deco.text("hello, world!")])
for any given path. As far as I can see, there are docs missing for
the decorators. We really need to cover those features in the docs as
well. Still, for the moment you may have a look to the deco module to
see the options of this decorator are. It should be straight forward
to understand.
HTH,
André
--
by _ _ _ Dr. André Wobst
/ \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
-------------------------------------------------------------------------
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