I have a following problem. I plot an graph over a background image. Sometimes Spyder (my IDE) plots over the the image strange white horizontal and vertical lines. See graphs bellow.
This is what sometimes happens:
I use this code:
import matplotlib.pyplot as plt
from PIL import Image
img = Image.open("./myimg.png")
plt.imshow(img)
x = mydata[['Centroid1']]
y = mydata[['Centroid2']]
scatter = ax.scatter(x, y, s=20, alpha=0.3, color='red')
plt.show()
Do you know, how can I delete these white lines?