numpy as np
N = 1000
x = np.random.randn(N)
y = np.random.randn(N)
#Matplotlib画图
import matplotlib.pyplot..., 2017, 2018, 2019]
y = [5, 3, 6, 20, 17, 16, 19, 30, 32, 35]
# 使⽤Matplotlib画折线图
import matplotlib.pyplot..."""
import matplotlib.pyplot as plt
plt.hist(x, bins=10)
plt.show()
# ⽤Seaborn画直⽅图:
'''
使用sns.distplot...as plt
plt.bar(x,y)
plt.show
# ⽤Seaborn画条形图
# sns.barplot(x=None,y=None,data=None)函数;参数data为DataFrame...类型
import seaborn as sns
sns.barplot(x,y)
plt.show()
运行结果:
?