def distribution(data,xlabel="data",ylabel="percentage",name=None):
ax = plt.axes()
ax.set(xlabel=xlabel,ylabel=ylabel)
ds = sns.distplot(data,ax=ax)
plt.show()
if name is not None:
ds.get_figure().savefig(name)
评论列表
文章目录