Submitted:
27 November 2026
Posted:
01 December 2026
You are already at the latest version
Abstract
Modern publications require complex multi-panel figures that combine microscopy images, plots and annotations under strict journal constraints on size, resolution, typography, colour accessibility and image integrity. Precise handling of pixel size and aspect ratio is essential for imaging data, yet most researchers still assemble figures by hand in general-purpose graphics software. We present PyFigures, an open-source application for creating scientific figures. Researchers drag images into rows and columns that can be nested to any depth; images of any shape are aligned without being cropped, panels are lettered automatically, and an annotation editor adds scale bars, regions of interest, insets, zoom callouts, arrows, montages, kymographs and orthogonal views. PyFigures reads multi-dimensional microscopy formats, OME-Zarr images and movies, draws statistical plots from tables with automatically chosen and documented tests, and exports figures as print-ready files, videos, editable PowerPoint and Illustrator documents, or for LaTeX. Templates and file patterns produce identical figures for many datasets, such as genotypes, replicates or genetic screens, in one step. Before submission, PyFigures checks figures against journal guidelines, screens them for duplicated or cloned regions, writes the pixel adjustments stored in a figure as ready-to-paste Methods text, simulates colour-vision deficiencies, drafts alternative text and exports journal Source Data bundles. The same operations are available in three ways that share one figure file: the graphical interface, text recipes that rebuild a figure reproducibly, and a Model Context Protocol (MCP) server that lets large language models build, revise and check figures through more than 190 tools, on files or on the figure open in the interface. To our knowledge, PyFigures is the only figure-assembly tool with native MCP support. Every change a model makes is a logged, reversible call to a documented operation on the researcher’s own images, so the result remains transparent, reproducible and editable. Interactive tutorials built into the application teach each feature by having users perform it, and a companion designer applies the same principles to scientific posters.
Keywords:
scientific figures
; microscopy
; reproducibility
; research integrity
; automated layout
; Python
; Model Context Protocol (MCP)
; large language models
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.