import matplotlib.pyplot as plt
x_values = list(range(1,5000))
y_values = [x**3 for x in x_values]
plt.scatter(x_values,y_values,c=y_values,cmap=plt.cm.Reds,edgecolors='none',s=40)
plt.savefig('squares_plot.png',bbox_inches='tight')
plt.show()
import matplotlib.pyplot as plt
x_values = list(range(1,5000))
y_values = [x**3 for x in x_values]
plt.scatter(x_values,y_values,c=y_values,cmap=plt.cm.Reds,edgecolors='none',s=40)
plt.savefig('squares_plot.png',bbox_inches='tight')
plt.show()