Skip to content

Instantly share code, notes, and snippets.

View GUOSHU-COOL's full-sized avatar

shuyu Guo GUOSHU-COOL

  • Chinese Academy of Sciences University
  • Chinese Academy of Sciences University
View GitHub Profile
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
#构造一组随机数据
s = pd.DataFrame(np.random.randn(1000)+10,columns = ['value'])
#画散点图和直方图
fig = plt.figure(figsize = (10,6))
ax1 = fig.add_subplot(2,1,1) # 创建子图1