{
  "filename": "plot_7.png",
  "iteration": 5,
  "description": "Plot the natural history timeline of Singleton-Merten syndrome 2 from HPO onset annotations and published case ages",
  "timestamp": "2026-11-28 22:13:33",
  "code": "\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nevents=[\n (0.0,\"Congenital glaucoma, IOP 45-47 mmHg\\n(PMID 37769987)\",\"#2b6cb0\"),\n (2.0,\"Goniotomy, trabeculotomy,\\nBaerveldt implant (PMID 37769987)\",\"#2b6cb0\"),\n (5.0,\"Psoriasiform plaques, childhood onset\\nHP:0025526, 7/11 (PMID 25620203)\",\"#b7791f\"),\n (8.0,\"Aortoiliac and mesenteric artery\\nnarrowing on CT (PMID 41536870)\",\"#c0392b\"),\n (10.0,\"Phalangeal osteolysis HP:0009771\\n8/8 (PMID 25620203)\",\"#6b46c1\"),\n (14.0,\"Aortic valve calcification HP:0004380\\n5/7, juvenile onset (PMID 25620203)\",\"#c0392b\"),\n (20.0,\"Aortic stenosis / regurgitation,\\nTAVR reported (PMID 30343025)\",\"#c0392b\"),\n (38.0,\"Femoral head necrosis, core\\ndecompression (PMID 34189824)\",\"#6b46c1\"),\n]\nfig,ax=plt.subplots(figsize=(13,6.5))\nax.hlines(0,-1,42,color=\"#999\",lw=2)\nfor i,(x,lab,c) in enumerate(events):\n    up = 1 if i%2==0 else -1\n    h = 0.35+0.22*(i//2)%3\n    ax.vlines(x,0,up*h,color=c,lw=1.6)\n    ax.plot(x,0,\"o\",color=c,ms=9,zorder=3)\n    ax.text(x,up*(h+0.05),lab,ha=\"center\",va=\"bottom\" if up>0 else \"top\",\n            fontsize=8.5,color=c)\n# onset distribution band from HPO\nax.annotate(\"HPO onset annotation (n=11): childhood 5/11, juvenile 4/11, young adult 2/11\",\n            xy=(21,-1.25),ha=\"center\",fontsize=9,color=\"#444\")\nax.axvspan(1,16,alpha=0.07,color=\"#2b6cb0\")\nax.axvspan(16,40,alpha=0.05,color=\"#c0392b\")\nax.text(8.5,1.35,\"childhood and juvenile onset window\",ha=\"center\",fontsize=9,color=\"#2b6cb0\")\nax.text(28,1.35,\"adult complications\",ha=\"center\",fontsize=9,color=\"#c0392b\")\nax.set_xlim(-1.5,42); ax.set_ylim(-1.45,1.5)\nax.set_yticks([]); ax.set_xlabel(\"age (years)\")\nfor s in [\"top\",\"left\",\"right\"]: ax.spines[s].set_visible(False)\nax.set_title(\"Natural history of Singleton-Merten syndrome 2 (MONDO:0014575, RIGI)\\nages from published RIGI/DDX58 cases and HPO onset annotations\",fontsize=12)\nplt.tight_layout(); plt.show()\n",
  "plot_number": 7
}