import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #直方图数据准备 a=np.random.random(10)*100 s=pd.Series(a) #显示 # plt.hist(s) # plt.show() # sns.distplot(s,kde=True) # plt.show() # x=['Cat1','Cat2','Cat3','Cat4'] # y=[4,6,8,10] # sns.barplot(x,y) # plt.show() # data=np.random.normal(size=(10,4)) # labels=['a','b','c','d'] # df=pd.DataFrame(data,columns=labels) # sns.boxplot(data=df) # plt.show()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)