fig, ax = plt.subplots(figsize=(4.8, 4.8))
for a in range(3):
for b in range(3):
ax.scatter([a], [b], s=900, color="#e8eef5", edgecolor="#4a6785", zorder=2)
ax.text(a, b, f"({a},{b})", ha="center", va="center", fontsize=9, zorder=3)
x, y = (1, 2), (2, 1)
lo, hi = meet(x, y), join(x, y)
ax.scatter([x[0], y[0]], [x[1], y[1]], s=900, color="#f6d5d0",
edgecolor="#a33b2e", linewidth=1.6, zorder=4)
ax.scatter([lo[0], hi[0]], [lo[1], hi[1]], s=900, marker="s",
color="#d5ead0", edgecolor="#2d6a2d", linewidth=1.6, zorder=4)
ax.annotate("meet (1,1)", xy=lo, xytext=(lo[0] + 0.30, lo[1] - 0.34), fontsize=9,
color="#2d6a2d")
ax.annotate("join (2,2)", xy=hi, xytext=(hi[0] - 0.90, hi[1] + 0.30), fontsize=9,
color="#2d6a2d")
ax.annotate("incomparables", xy=(1.5, 1.5), xytext=(1.5, 1.5), fontsize=9,
ha="center", color="#a33b2e")
ax.plot([1, 2], [2, 1], linestyle=":", color="#a33b2e", zorder=1)
ax.plot([1, 2], [1, 2], linestyle=":", color="#2d6a2d", zorder=1)
ax.set_xlabel("action du joueur 1")
ax.set_ylabel("action du joueur 2")
ax.set_title("Treillis produit : (1,2) et (2,1) sont incomparables")
ax.set_xlim(-0.6, 2.6)
ax.set_ylim(-0.6, 2.6)
ax.set_xticks(range(3))
ax.set_yticks(range(3))
ax.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()