Skip to content

Minimal single-panel Matplotlib boxplot recipe for single-column panels in two-column papers

License

Notifications You must be signed in to change notification settings

PurpleOcta/boxplot-single-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal single-panel Python boxplot recipe

Create clean, publication-ready boxplots comparing measurements across multiple methods or experimental conditions, without fighting Matplotlib defaults. This deliberately simple figure recipe produces a single, high-quality panel that imports cleanly into LaTeX and Microsoft Word. It is optimized for single-column figure panels in two-column journal and conference papers. An extended version addresses comparisons of grouped measurements with color-coded boxplots and a dedicated legend.

Preview

Boxplot

Scope of this example

This repository demonstrates:

  • a single-panel boxplot
  • comparison across multiple methods or conditions
  • explicit, readable Matplotlib code without additional frameworks
  • sizing optimized for single-column figures in two-column papers
  • clean defaults suitable for publication output

The goal is to provide a starting point with sensible spacing, stroke width, and labels that can be adapted as needed.

Quick start

Install dependencies:

pip install matplotlib numpy

Run the example:

python recipe.py

This generates a single-panel boxplot (figure.pdf) from example data.

Extended recipe

The example is part of an extended Python recipe for comparisons across grouped measurements. The extended version builds directly on this repository and includes:

  • method sub-group faceting with gaps
  • colored box artists
  • a legend with one box and label per method
  • LaTeX layout examples and embedding snippets

About

Minimal single-panel Matplotlib boxplot recipe for single-column panels in two-column papers

Topics

Resources

License

Stars

Watchers

Forks

Languages