plt.bar(x, y1, label="HR", color="#14342B", hatch="*") plt.bar(x, y2, bottom=y1, label="Engineering", color="#60935D", hatch="xx") plt.bar(x, y3, bottom=y1 + y2, label="Marketing", color="#BAB700", hatch="..") plt.bar(x, y4, bottom=y1 + y2 + y3, label="Sales", color="#F5E400", hatch="//") plt.suptitle("Chart shows how the employees are distributed per department and per office location.\nChicago office has the most employees.", x=0.125, y=0.98, ha="left", fontsize=14, fontstyle="italic") plt.title("Employee Count Per Location And Department", fontsize=20, fontweight="bold", y=1.15, loc="left") plt.xlabel("Office Location") plt.ylabel("Count") plt.legend(loc="upper right", ncol=4) plt.ylim(top=320) plt.show()