def generic_unstacked_barplot(df, pdf, title_string, legend_labels, ylabel, names, box_label,
bbox_to_anchor=(1.12, 0.7)):
fig, ax = plt.subplots()
bars = []
shorter_bar_width = bar_width / len(df)
for i, (_, d) in enumerate(df.iterrows()):
bars.append(ax.bar(np.arange(len(df.columns)) + shorter_bar_width * i, d, shorter_bar_width,
color=sns.color_palette()[i], linewidth=0.0))
_generic_histogram(bars, legend_labels, title_string, pdf, ax, fig, ylabel, names, box_label, bbox_to_anchor)
plots.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录