[Numpy-discussion] Impossible to draw a direction of arrows in Python???

Happyman bahtiyor_zohidov@mail...
Fri Apr 12 04:34:06 CDT 2013

I have encountered some problem while I was drawing a direction of arrow. I have point (x,y) coordinates and angle of them. What I want to do is that to draw arrow according to the given angle (just to show the point direction as an arrow in each point coordinate). Here, we should assume coordinates of  '+x', '+y', '-x ', '-y' are 90, 0, 270, 180 degrees, respectively. 
I am a bit unfamiliar with Python drawing tools. I am still not sure to draw directional point (arrow based on angle) whether I use pylab or some other modules or.. still not sure at all. I put the following codes as a sample to give better description:

import numpy as np
import scipy as sp
import pylab as pl

def draw_line(x,y,angle):
             # Inputs:
             x = np.array([ 2, 4, 8, 10, 12, 14, 16])
             y = np.array([ 5, 10, 15, 20, 25, 30, 35])
             angles = np.array([45,275,190,100,280,18,45])   
             # First, draw (x,y) coordinate
             # Second, according to the angle indicate the direction as an arrow

Thanks in advance for your friendly support,

happy Man
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130412/6f312f8b/attachment-0001.html 

More information about the NumPy-Discussion mailing list