Hi,

On 26.07.06, Carl Bolduc wrote:
> my only problem is that when I added the "key=graph.key.key(pos="br", dist=
> 0.1)" to label my function, I get this error:
[snip]
> Now what's wrong? I just used the same code line as in this example:
> http://pyx.sourceforge.net/examples/graphs/change.html

The reason is that the text style does not provide a graph key. This
was intented (but in case we have a use-case now, we might reconsider
that decision). The idea was, that once you have text at the dots
themself, you should not have a graph key ... (at least for those
data using the text style).

For the moment you could do a trivial monkey patch to the text style
and provide an empty key_pt method. Insert

    graph.style.text.key_pt = lambda self, privatedata, sharedata, graph, x_pt, 
y_pt, width_pt, height_pt: None

directly after the "from pyx import *" line.


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

Reply via email to