Matplotlib - Image Display
The following code is intended to overlay a green line on an image, but the line does not appear. What is the error?
import matplotlib.pyplot as plt import numpy as np image = np.ones((10,10)) plt.imshow(image) plt.plot([1, 8], [1, 8], color='green') plt.show()
