链接
1、学习链接
 2、数据链接
思考题
(1)画出数据的散点图和边际分布
 数据集来自github仓库下data/layout_ex1.csv
 请利用数据,画出如下的图:
 
fig,axs = plt.subplots(2, 5, figsize=(10, 4), sharex=True, sharey=True)
fig.suptitle('墨尔本1981至1990年月温度变化曲线', size=20)
year = 1981
index = 0
for i in range(2):
    axs[i, 0].set_ylabel("气温")
    for j in range(5):
        axs[i][j].scatter(np.random.randn(10), np.random.randn(10))
        axs[i][j].set_title('%d年'%year)
        year += 1
        axs[i][j].plot(range(1, 13), data.iloc[index : index + 12]['Temperature'], marker='*')
        index += 12 
        axs[i][j].set_xlim(1,12)
        axs[i][j].set_ylim(5,20)
fig.subplots_adjust(left=0.1, bottom=0.01, right=0.8, top=0.85, wspace=0.1, hspace=0.2)
#fig.tight_layout()

 (2)画出数据的散点图和边际分布
 用 np.random.randn(2, 150) 生成一组二维数据,使用两种非均匀子图的分割方法,做出该数据对应的散点图和边际分布图
 
在这里插入代码片









