-
Notifications
You must be signed in to change notification settings - Fork 0
Home
gxzpython edited this page Sep 21, 2020
·
1 revision
Welcome to the Intermediate-Python wiki!
plt.scatter(gdp_cap, life_exp)
plt.xscale('log') plt.xlabel('GDP per Capita [in USD]') plt.ylabel('Life Expectancy [in years]') plt.title('World Development in 2007')
tick_val = [1000, 10000, 100000] tick_lab = ['1k', '10k', '100k']
plt.xticks(tick_val,tick_lab)
plt.show()