Hi Kib2 I'm CCing back to the list - hope this is OK.
> > On 10/28/06, kib2 <[EMAIL PROTECTED]> wrote: > >> I wanted to know if I can retrieve all the pathitems of a path class > >> instance. > > > > Have you tried the pathitems instance variable. As in > > > > p = pyx.path.rect(0, 0, 1, 1) > > print p.pathitems > > > > which gives the output > Thanks, it was so easy...I had a look at the docs in PyX's online > manual, but couldn't find the pathitems method in the path module. It isn't a method - it is just a variable. You are right that it doesn't seem to be mentioned in the docs. I don't know if this was just an oversight, or if it is because it is not supposed to be part of the public API. Could the developers comment on this? The way I found out about it was using the "?" feature in IPython, which is an interactive python interpreter. [snip] > Just a last one: > I really need to implement MetaPost-like Bézier curves, "z0..z1" draws a > Bézier curve from z0 to z1 without having to calculate the control > points. Is there something similar in PyX and if not, where to find any > reference ? As far as I know, there is nothing built in to PyX for doing this. It would be great if there were! If you want to implement this yourself, then the wikipedia article looks like a reasonable general introduction (http://en.wikipedia.org/wiki/B%C3%A9zier_curve). The way metapost does it seems to be reasonably well documented - see http://www.tlhiv.org/MetaPost/documentation/, particularly Metapost_Curves.pdf Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
