def plot_counts(count_series, x, y, order, y_label, title, out_path):
df = series_to_plot_dict(count_series, x, y)
fig, ax = sns.plt.subplots()
sns.barplot(data=df, x=x, y=y, order=order)
sns.plt.ylabel(y_label)
sns.plt.title(title)
sns.plt.savefig(out_path)
评论列表
文章目录