The example at
http://pyx.sourceforge.net/gallery/graphs/integral.html
includes the following code::
p = d.path # the path is available after the graph is finished
pa = g.xgridpath(a)
pb = g.xgridpath(b)
(splita,), (splitpa,) = p.intersect(pa)
(splitb,), (splitpb,) = p.intersect(pb)
area = (pa.split([splitpa])[0] <<
p.split([splita, splitb])[1] <<
pb.split([splitpb])[0].reversed())
Might someone be so kind as to provide a line by line
explanation (and perhaps add this to the example).
I get the basic idea, but I'd like more than a basic
understanding.
Thank you,
Alan Isaac
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user