← Commit history

ECAS study: clear the impedance chart's labels

John Lauer ·25fe102e97 ·10d ago ·parent 531f515
2 files changed +4−3
ecas-capacitors/img/pdn-vin.png
⋯ 1 unchanged line ⋯
ecas-capacitors/tools/pdn_compare.py+4−3
@@ -74,11 +74,12 @@ for i, (k, (f, z)) in enumerate(curves.items()):     ax.loglog(f, z, color=S[i], lw=2, label=k)     p = res[k]     ax.plot([p["low_peak_Hz"]], [p["low_peak_ohm"]], "o", color=S[i], ms=7, mec=SURF, mew=2)-    ax.annotate(f"{p['low_peak_ohm']*1e3:.0f} mΩ", (p["low_peak_Hz"], p["low_peak_ohm"]), xytext=(6, 6), textcoords="offset points", fontsize=9.5)+    off = [(8, 6), (-66, -2), (6, -16)][i]+    ax.annotate(f"{p['low_peak_ohm']*1e3:.0f} mΩ", (p["low_peak_Hz"], p["low_peak_ohm"]), xytext=off, textcoords="offset points", fontsize=9.5) ax.axhline(ra["targetOhm"], color=INK2, lw=1, ls="--")-ax.text(1.2e3, ra["targetOhm"] * 1.08, f"target {ra['targetOhm']*1e3:.0f} mΩ (5 % of 12 V at a {ra['stepA']:g} A step)", fontsize=9.5, color=INK2)+ax.text(9e7, ra["targetOhm"] * 1.12, f"target {ra['targetOhm']*1e3:.0f} mΩ (5 % of 12 V at a {ra['stepA']:g} A step)", fontsize=9.5, color=INK2, ha="right") ax.set_xlim(1e3, 1e8); ax.set_ylim(1e-3, 3) ax.set_xlabel("Hz"); ax.set_ylabel(f"|Z| at {ra['load']} (Ω)") ax.set_title("VIN rail impedance on the board's real copper", loc="left")-ax.legend(loc="upper right", fontsize=9.5)+ax.legend(loc="lower left", fontsize=9.5) fig.tight_layout(); fig.savefig(os.path.join(ROOT, "img", "pdn-vin.png"), dpi=130); plt.close(fig)