Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-24 Thread Sameer Regmi
Thank you Lee. Thank you Chris and John, the problem is solved. Chris, we did the method 1) as this was easier for us. Sameer On Sun, Aug 23, 2009 at 5:53 PM, John Hunter jdh2...@gmail.com wrote: On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov wrote: This is a Bezier

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-23 Thread Chris Barker
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

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-23 Thread John Hunter
On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov wrote: 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... somewhere like ...

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-22 Thread Jae-Joon Lee
On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmiregm...@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

[Matplotlib-users] help needed in plotting curved elements

2009-08-21 Thread Sameer Regmi
We are working on plotting mesh (in hermes2d: http://hpfem.math.unr.edu/projects/hermes2d-new/) We created a python function to plot mesh but initially without curves. Later we also tried to work on curved elements but we are having some problems. In the hermes2d examples curves are defined as [4,