Exercise: Create Smiley Face

Not the prettiest smiley face, but the question is: Can you reproduce it? Use the sizes list to do so.
Hint: The alpha argument makes the markers transparent, allowing us to see the overlapping markers in the final plot.
Expected:
matplotlib expected figure
Output:
import matplotlib.pyplot as plt import numpy as np x = [3.5,5.5,2.8,3.1,3.6,4,4.5,5,5.4,5.9,6.2,4.5] y = [5.2,5.2,3,2.5,1.9,1.5,1.4,1.5,1.9,2.5,3,4] sizes = [850,850,50,50,50,50,50,50,50,50,50,50000] ############## add code here ###############
plt.scatter(x, y, alpha = 0.5)
############################################ plt.title('Smiley') plt.xticks(np.arange(1,9)) plt.yticks(np.arange(9)) plt.show()
Python
Setting up Python environment...
Output