Sameer Regmi wrote: > We are working on plotting mesh (in > hermes2d: http://hpfem.math.unr.edu/projects/hermes2d-new/)
> In the hermes2d examples curves are defined as [4, 7, 45] where 4,7 > are vertices indices, and 45 is center angle. > 1) matplot.path porvides a way to plot curve with three points > http://matplotlib.sourceforge.net/api/path_api.html#module-matplotlib.path This is a Bezier spline -- it can not exactly form a piece of a circle (though it can get pretty close). You can probably find the math somewhere for how to approximate a circle, but... > 2) matplot.patch.arc provides a way to plot an arc > > http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.patches > > but it needs > -> center of circle > -> start angle > -> end angle > -> radius of circle > we have to calculate all these with data available to us Since this actually plots s circle, I think it's a better bet. It should be pretty straightforward coordinate geometry to find those parameters from the ones you have -- and you only have to write that once! This page (or others like it) might help you get started: http://www.codecogs.com/reference/maths/analytical_geometry/the_coordinate_geometry_of_a_circle.php HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ------------------------------------------------------------------------------ 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