Plot guides › How-to

Make a figure for a journal column width

Journals print figures at fixed widths, so set the figure size in the final printed size and choose font sizes for that size. Then nothing is scaled down and the text stays readable. Nature, for example, specifies 89 mm for a single column and 183 mm for a double column.

Example make a figure for a journal column width made with matplotlib
Rendered from the code below, with example data.

When to use it

Watch out: Check your journal's author guidelines for exact widths, minimum font size and accepted formats; they differ between publishers.

Ask for it in pltchat

Upload your file and type something like:

"make this figure Nature single-column width, 7 pt fonts, export as PDF"

pltchat writes the loader and the plot for your columns, runs it in your browser and shows you the code.

The matplotlib code

Self-contained with example data; swap in pd.read_csv(...) or pd.read_excel(...) for your own file.

import numpy as np
import matplotlib.pyplot as plt

MM = 1 / 25.4                                   # inches per mm
SINGLE_COLUMN = 89 * MM                         # Nature single column
plt.rcParams.update({"font.size": 7, "axes.labelsize": 7, "xtick.labelsize": 6,
                     "ytick.labelsize": 6, "legend.fontsize": 6,
                     "axes.linewidth": 0.6, "lines.linewidth": 1.0,
                     "pdf.fonttype": 42})        # editable text in Illustrator

x = np.linspace(0, 10, 200)
fig, ax = plt.subplots(figsize=(SINGLE_COLUMN, SINGLE_COLUMN * 0.75))
ax.plot(x, np.sin(x), label="sin")
ax.plot(x, np.cos(x), label="cos")
ax.set_xlabel("Time (s)")
ax.set_ylabel("Amplitude")
ax.legend(frameon=False)
ax.spines[["top", "right"]].set_visible(False)
fig.tight_layout(pad=0.3)
fig.savefig("figure1.pdf")                       # vector, for submission
fig.savefig("figure1.png", dpi=600)
plt.show()

Make this with your data

Upload a CSV, Excel, JSON or Parquet file. Your first plot is always free.

Related plots