## matplotlib-users

 [Matplotlib-users] drawing lines an exact angles From: sandric ionut - 2009-04-19 11:25:25 Attachments: Message as HTML ``` Hello: I am trying to create a drawing for slope stability analysis and I need to draw lines at certain angles with certain lengths and than to calculate the angle of the lines intersections. Is it possible to use matplotlib? Thank you in advance Ionut ```
 Re: [Matplotlib-users] drawing lines an exact angles From: Ryan May - 2009-04-19 14:37:47 Attachments: Message as HTML ```On Sun, Apr 19, 2009 at 6:25 AM, sandric ionut wrote: > > Hello: > > I am trying to create a drawing for slope stability analysis and I need to > draw lines at certain angles with certain lengths and than to calculate the > angle of the lines intersections. Is it possible to use matplotlib? > > Thank you in advance > Matplotlib can plot the lines, but there's not anything inherent to the calculation of the angle of intersection. But if you represent the slopes as vectors, the angle of intersection can be found from the dot product of the vectors. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ```
 Re: [Matplotlib-users] drawing lines an exact angles From: sandric ionut - 2009-04-19 16:43:14 Attachments: Message as HTML ``` ________________________________ From: Ryan May To: sandric ionut Cc: Matplotlib Sent: Sunday, April 19, 2009 5:37:28 PM Subject: Re: [Matplotlib-users] drawing lines an exact angles On Sun, Apr 19, 2009 at 6:25 AM, sandric ionut wrote: Hello: I am trying to create a drawing for slope stability analysis and I need to draw lines at certain angles with certain lengths and than to calculate the angle of the lines intersections. Is it possible to use matplotlib? Thank you in advance Matplotlib can plot the lines, but there's not anything inherent to the calculation of the angle of intersection.  But if you represent the slopes as vectors, the angle of intersection can be found from the dot product of the vectors. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ```