I have two ndArray.
ex:
x = np.array([110,200, 500,100])
y = np.array([50,150,30,70])
Now based on their value I have created an image.
x_shape = np.max(x) #x_shape=500
y_shape = np.max(y) #y-shape=150
image = np.zeros((x_shape+1, y_shape+1))
according to my data now my image size is (501,151)
Now, How can I insert data from (x, y) as x,y pair? I mean for the pixel value: (110,50), (200,150), (500,30), (100,70) I want the image will be white and the rest pixel will be dark. How can I achieve this?