Here is my code:
import matplotlib.pyplot as plt
x_values = list(range(1,1001))
y_values = (x**2 for x in x_values)
plt.scatter(x_values,y_values,s=10)
#range of axis
plt.axis([0,1100,0,1100000])
plt.show()
Whenever i try to plot a list of numbers through scatter method in python, I always get the error that "matplotlib does not support generatore". Is there any solution?