"""Add evenly spaced numeric tick labels to already rendered focus graphs."""
from pathlib import Path
from PIL import Image,ImageDraw
ROOT=Path(__file__).resolve().parents[1];OUT=ROOT/'results/l46'
def main():
 for path in sorted(OUT.glob('scene-*.jpg')):
  img=Image.open(path).convert('RGB');draw=ImageDraw.Draw(img);draw.rectangle((890,611,1440,641),fill='#f3f6ef')
  for z in range(5):draw.text((902+115*z,614),str(z),fill='#203a38')
  draw.text((895,628),'Plane index · each curve normalized separately',fill='#203a38');img.save(path,quality=92)
 print('Added explicit evenly spaced focal-plane ticks to six saved panels.')
if __name__=='__main__':main()
