How to combine plots into one multi-panel figure, without redoing it every time

Short answer

To make a multi-panel figure you will not have to rebuild after every change, build the whole figure in code, not by hand:

  • Set the figure to the journal's width (for example 183 mm at Nature, 174 mm at Cell Press) and the text to its size.
  • Lay out the panels in one line: patchwork in R (p1 + p2 + p3) or subplot_mosaic in Python ("aab;cdd").
  • Add panel labels in code in the journal's style: lowercase bold a, b, c for Nature, capitals for Cell Press.
  • Share axes and legends where panels repeat them.
  • Save as PDF at the final size.

A change then means editing one line and running the script again.

You spend an afternoon arranging four plots into one figure: lining them up, adding a, b, c, making the text match. Then your supervisor asks to swap two panels, or the reviewer wants a new time point, and the whole thing starts again.

That loop is one of the most common complaints researchers share about figures. The fix is to stop assembling the figure by hand. If the layout, the labels and the size live in the same script as the plots, a change is one line and a re-run.

This guide shows how to do that in R and Python, with the journal rules a multi-panel figure has to meet.

A four-panel scientific figure with bold lowercase labels. Panel a, wide, is a line plot of cell count over 24 hours for control (blue) and treated (orange). Panel b is a square heatmap titled Signal map with a viridis colour bar. Panel c is a dot plot of area for control and treated with mean lines. Panel d, wide, shows outline histograms of expression z-scores for both groups. The phone version stacks the same four panels in one column.
A multi-panel figure at Nature's 183 mm width, made with the code below. The phone version is the same figure re-laid out for one 89 mm column. Made-up data.How this was made: I made this with the Python code in this post, from made-up data.

The rules of a multi-panel figure

Before any code, know what the finished figure has to meet.

Multi-panel figure rules at two journals, as read on 2 November 2026.
Rule Nature Cell Press
Full width 183 mm (89 mm one column) 174 mm (85 mm one column)
Panel labels "8 pt bold, upright (not italic) a, b, c" "labeled with capital letters"
Other text 5 to 7 pt About 6 to 8 pt
Layout Nature follows your suggested layout but "may rearrange parts if necessary" "Each figure must fit on a single page"; at most 6.5 x 8 in (16.5 x 20 cm) recommended (read 15 November 2026)

And the habits that make a multi-panel figure easy to read:

  • Reading order: a, b, c left to right, then top to bottom, in the order the text cites them.
  • One message: every panel supports the figure's main point; the rest goes to the supplement.
  • Same scale where readers compare: panels that compare the same measure share the y-axis range.
  • No repeats: one shared legend instead of the same key in every panel.
  • Even spacing and aligned edges.
  • Every panel described in the legend by its letter. Our figure legend guide shows the pattern.
Cropped screenshot of Nature's final submission guide, with the publisher's name above it. Under arrangement of parts, Nature follows the authors' suggested layout of panels but may rearrange them, and asks authors to indicate essential layout features such as panel alignments. Under image types, it asks authors not to rasterise line art or text and to supply editable, unflattened vector artwork where possible.
From the publisher's own page: Nature's final submission guide, read 15 November 2026. GoFigures is not affiliated with Nature.How this was made: A cropped screenshot of the publisher's own page, taken on 15 November 2026 and framed with the publisher's name.

In R with patchwork

The patchwork package combines ggplot2 plots with simple operators: + places plots next to each other, | puts them side by side and / stacks them.

Step 1: one theme for every panel, so fonts and sizes match:

library(ggplot2)
library(patchwork)
theme_set(theme_classic(base_size = 7, base_family = "Arial"))

Step 2: make each panel as a normal ggplot (p1, p2, p3, p4).

Step 3: lay them out, label them and save at the journal's width:

fig <- p1 + p2 + p3 + p4 +
  plot_layout(design = "AAB\nCDD", guides = "collect") +
  plot_annotation(tag_levels = "a") &
  theme(plot.tag = element_text(size = 8, face = "bold"))

ggsave("Figure1.pdf", fig, width = 183, height = 100, units = "mm")
  • design = "AAB\nCDD" draws the layout as text, like the Python version below: panel A takes two thirds of the top row, D two thirds of the bottom row.
  • tag_levels = "a" gives lowercase a, b, c (Nature); use "A" for capitals (Cell Press).
  • guides = "collect" gathers repeated legends into one.

A change later: to swap two panels, swap them in the first line and run it again. For a one-column version, change the design to "A\nB\nC\nD" and the width to 89 mm.

In Python with matplotlib

Matplotlib's subplot_mosaic lets you draw the layout as text: each letter is a panel, and repeating a letter makes it span more space. "aab;cdd" means panel a takes two thirds of the top row and b one third; c and d share the bottom row the other way round.

Step 1: one style for every panel, and the figure at the journal's size:

import matplotlib.pyplot as plt
plt.rcParams.update({"font.family": "Arial", "font.size": 7,
                     "axes.linewidth": 0.5})
mm = 1 / 25.4
fig = plt.figure(figsize=(183 * mm, 100 * mm), layout="constrained")
axd = fig.subplot_mosaic("aab;cdd")

Step 2: draw each panel on its axes: axd["a"].plot(...), axd["b"].imshow(...), and so on.

Step 3: add the panel labels and save:

for label, ax in axd.items():
    ax.text(-0.02, 1.04, label, transform=ax.transAxes,
            fontsize=8, fontweight="bold", ha="right", va="bottom")

fig.savefig("Figure1.pdf")
  • layout="constrained" spaces the panels so labels do not overlap.
  • Because the dictionary keys are the labels, renaming a panel renames its tag. Use label.upper() for capital letters.

A change later: to re-lay out the figure for one 89 mm column, change two things: the figure size to (89 * mm, 215 * mm) and the mosaic to "a;b;c;d". The phone version of the figure above was made exactly that way.

Micrographs and blots in a multi-panel figure

Image panels can go into the same script, so they follow the same layout:

  • Prepare the image first: crop, add the scale bar and make any whole-image adjustment before it goes in. Our image integrity post covers what you may adjust.
  • Place it as an image panel: axd["b"].imshow(img) in Python, or a ggplot with the image as a raster layer in R. Turn off the axes for image panels.
  • Check pixels at the final size: a micrograph should still have 300 dpi or more at the width its panel ends up; see the figure resolution guide.

Common multi-panel mistakes

  • Panels shrunk after they were made, so their text ends up a different size in each panel.
  • Labels in the wrong style: italic, wrong case, or a different size from panel to panel.
  • The same legend repeated in four panels.
  • Different y-axis ranges on panels the reader is meant to compare.
  • Too many panels, so each one is too small to read.
  • Panels labelled out of order, or in a different order from the text.

For the full list, see 12 common mistakes in scientific figures.

Multi-panel figure checklist

  • Figure built at the journal's width, text at its size.
  • Layout, labels and size in the script, not done by hand.
  • Panel labels in the journal's style, in reading order.
  • Shared legends and shared axes where they repeat.
  • Images prepared before placing, with enough pixels.
  • Saved as PDF at the final size; every panel described in the legend.

For the steps before and after this, see how to make figures for a research paper, and for a journal's exact numbers, our journal figure requirements table.

Questions

How do I make a multi-panel figure?

Make each plot with the same style, then combine them in code at the journal's width: patchwork in R or subplot_mosaic in Python. Add panel labels in the journal's style, share repeated legends, and save as PDF at the final size.

How do I add a, b, c labels to subplots in Python?

Loop over the axes and add text in the top left corner: ax.text(-0.02, 1.04, label, transform=ax.transAxes, fontweight="bold"). With subplot_mosaic, the panel names can be the labels themselves.

How do I label panels in patchwork?

Add plot_annotation(tag_levels = "a") for lowercase letters or "A" for capitals, and style them with theme(plot.tag = element_text(face = "bold", size = 8)).

Should panel labels be lowercase or capital letters?

It depends on the journal. Nature asks for 8 pt bold, upright lowercase a, b, c; Cell Press asks for capital letters. Check your journal's figure guidelines.

How do I use one legend for several plots?

In R, add plot_layout(guides = "collect") in patchwork. In Python, draw the legend once, on one panel or with fig.legend(), and leave it off the others.

How big should each panel be?

Big enough that its smallest text is at the journal's minimum size at the final width. If panels get too small, split the figure or move panels to the supplement.

Sources

Sources (4)
  1. Complex and semantic figure composition (subplot_mosaic)Matplotlib · checked 2 November 2026
  2. patchworkGitHub · checked 2 November 2026 · Thomas Lin Pedersen.
  3. Final submissionNature · checked 2 November 2026 · Widths, text, panel labels, layout.
  4. Figure guidelinesCell Press · checked 15 November 2026 · Widths, text, panel labels.

Changes: 15 November 2026, a cropped screenshot of the source page added, read that day. 15 November 2026, Cell Press figure size corrected from the publisher's page. 14 November 2026, Cell Press figure guidelines link corrected from the publisher's page. 2 November 2026, first published.

ShareEmail

Spotted an error, or a rule that has changed? Please write to support@gofigures.app and I will correct it and note the change on this page.

Join the waiting list

We only use your email for GoFigures. Leave any time. Privacy