Plot Scatter Graph with Python with Label and Title
gdp =[84580,76398,68402,65521,64684,61373]
life_exp =[80,82,77,83,75,82]
import matplotlib.pyplot as plt
plt.scatter(gdp, life_exp)
<matplotlib.collections.PathCollection at 0x276f0cf0580>
xlab = 'GDP per Capita [in USD]'
ylab = 'Life Expectancy [in years]'
title = 'World Development'
plt.xlabel(xlab)
plt.ylabel(ylab)
plt.title(title)
plt.scatter(gdp, life_exp)
<matplotlib.collections.PathCollection at 0x276f2dc9100>