In [15]:
import matplotlib.pyplot as plt

x = [x for x in range(0, 18)]
#y = [0,1,2,3,4]
y = [3.4399999999999999, 3.5, 3.6200000000000001, 3.4100000000000001, 3.4300000000000002, 3.6699999999999999, 3.7400000000000002, 3.6699999999999999, 3.5099999999999998, 3.9700000000000002, 3.2799999999999998, 3.5600000000000001, 3.6600000000000001, 3.54, 3.4399999999999999, 3.5099999999999998, 3.8100000000000001, 3.5699999999999998]
plt.xticks(range(len(x)), ['Action', 'Adventure', 'Animation', 'Children', 'Comedy', 'Crime', 'Documentary', 'Drama', 'Fantasy', 'Film-Noir', 'Horror', 'Musical', 'Mystery', 'Romance', 'Sci-Fi', 'Thriller', 'War', 'Western'])
plt.scatter(x,y)
plt.autoscale(tight=True)
plt.rcParams["figure.figsize"] = (10,3)
plt.savefig(r'C:\Users\hrao\Documents\Personal\HK\Python\DSE200x\Mini Project\scifi-plot.png')
plt.show()



In [ ]:


In [ ]: