Browsing index pages (2 articles)
↧
Numpy data points region/circle
I have a numpy array dat holding x/y values which are plotted later on:[ [1 2 3 4 5] [2 4 6 8 10]]dat[0] holds x-values,dat1 contains the corresponding y-alues.Now I want to know which data points have...
View ArticleAnswer by Lee for Numpy data points region/circle
You could do it with complex numbers and make use of abs, then a for loop and broadcasting:a=np.array([1,2,3,4,5])b=np.array([6,7,8,9,10])c=[np.complex(x,y) for x,y in zip(a,b)] for x in c:...
View Article
Browsing index pages (2 articles)