fig, axes = plt.subplots(1, 3, figsize=(12, 5)) cols = ["revenue_usd", "units_sold", "return_rate_pct"] labels = ["Revenue (USD)", "Units Sold", "Return Rate (%)"] colors = ["#4a90d9", "#2ecc71", "#e67e22"] for ax, col, label, color in zip(axes, cols, labels, colors): bp = ax.boxplot(df[col], patch_artist=True, widths=0.5, medianprops=dict(color="black", linewidth=2)) bp["boxes"][0].set_facecolor(color) bp["boxes"][0].set_alpha(0.7) ax.set_title(label, fontsize=12, fontweight="bold") ax.set_xticks([]) plt.suptitle("Spread of Key Metrics Across Branches", fontsize=14, fontweight="bold", y=1.02) plt.tight_layout() plt.savefig("boxplots_spread.png", dpi=150) plt.show()