先看效果: Caption 代码如下: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt def draw_bar(same_score, diff_score): plt.title(same/different pairs seq score histogram) plt.hist(same_score, bins=10, facecolor=red, edgecolor=black, label='same', alpha=0.7) plt.hist(diff_score, bins=10