# Copyright (c) 2026 CLSA contributors # SPDX-License-Identifier: MIT """Figure 7: marginal decision change per additional rollout.""" from __future__ import annotations import matplotlib.pyplot as plt from common import load, save, style def main() -> None: style() res = load("e3_budget")["results"] curve = res.get("marginal", []) xs = [c["rollouts_per_candidate"] for c in curve] ys = [c["decision_change_rate"] for c in curve] fig, ax = plt.subplots(figsize=(3.6, 2.8)) ax.plot(xs, ys, marker="o", ms=3.5, lw=1.4, color="#1f4e79") ax.set_xlabel("Monte-Carlo rollouts per candidate") ax.set_ylabel("decision change vs single rollout") ax.set_xticks(xs) save(fig, "fig7_marginal") if __name__ == "__main__": main()