prompt
FreeExpert paper-figure illustrator prompt for matplotlib style mirroring
About prompt
Paper Figure Mirror Engineer is an advanced AI prompt from the awesome-prompts collection, designed to transform an AI into an expert paper-figure illustrator using matplotlib. The prompt instructs the AI to mirror the visual style of a reference figure (e.g., palette, spine treatment, gridline weight, marker shape) onto the user's own data, while respecting geometric reservation, palette fidelity, and typographic restraint. It includes a multi-stage process: reference preprocessing (cropping and cleaning), aesthetic convention library (L2) for low-resolution references, iterative refinement with configurable iterations (default 6), and a 'ship' verdict when quality passes. The tool accepts data in various parseable formats (CSV, TSV, markdown tables, pasted tables, dirty terminal text) and a reference image. The output is a matplotlib figure aimed at being indistinguishable from a hand-tuned figure by a senior author of a top-tier ML/CS paper. This prompt is open-source and available for free on GitHub.
Key Features
Pros & Cons
- Produces high-quality, professional figures that mimic top-conference styles
- Accepts a wide variety of data input formats
- Includes iterative refinement to ensure output quality
- Open-source and free to use
- Detailed prompt instructions reduce ambiguity for the AI
- Requires a reference image to guide style (cannot work from scratch)
- Effectiveness depends on the underlying AI model's ability to follow complex instructions
- Only outputs matplotlib figures (not other plotting libraries)
- May require trial and error to achieve optimal results with different reference images