I want to fill a 2D numpy array created by this:
import numpy as np
arr = np.full((10,10),0)
Example coordinates:
How can I fill those selected elements with data even if the coordinates is switched from 2,1:2,5 to 2,5:2,1 or from 5,1:8,1 to 8,1:5,1
If I want to fill data on 2,1 : 2,5,2,1 2,2 2,3 2,4 2,5 will be filled. Also same as 5,1 : 5,8
