On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmi<regm...@gmail.com> wrote:
> We tried the method 1 but the result was a garbled mesh

Please describe what you did and why the result is wrong.

The method 1 with quadratic bezier curve should be most
straight-forward and easy thing to do. Calculating the control points
is also straight forward. While you may simply use
matplotlib.bezier.get_intersection, you'd better come up with some
optimized version since you need to calculate this for lots of
positions.

It is not clear how you're drawing path currently, but Line2D class is
not suitable for bezier lines. You may use PathPatch class. Or you can
create your own artist class (maybe this is what you meant by
"implemented"). A simple version of bezier artist can be found in
mpl_toolkits.axes_grid.axeslines.BezierPath (included in mpl 0.99).

If you haven't, please take a look at the tutorial below.

http://matplotlib.sourceforge.net/users/path_tutorial.html


-JJ

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to