Can anyone show me how to create image like that using Python? I did draw a line but I dont know how to change x and y value.
Input:
Output:
from matplotlib import image
from matplotlib import pyplot as plt
# to read the image stored in the working directory
data = image.imread('Darwin_Maps.png')
# to draw a line from (200, 300) to (500, 100)
x = [200, 500]
y = [300, 100]
plt.plot(x, y, color="white", linewidth=3)
plt.imshow(data)
plt.show()


