Tutorials

Making clear, colour-blind-safe figures for papers

How to make clear, colour-blind-safe figures for papers: choosing a chart, accessible palettes, axis and scale rules, export formats and captions.

A figure in a paper is not decoration. It is an argument, and it either makes the claim easy to see or makes the reader work. Most figures that fail do not fail because the software was wrong. They fail because the message was unclear, the chart type did not match the data, or the colours excluded part of the audience. This guide covers the decisions that matter, with bioinformatics examples.

Decide the message before the chart

Write one sentence describing what the figure must show: "Treatment B reduces expression of these twelve genes", not "a heatmap of the data". If you cannot write the sentence, the figure is not ready. Once you have it, every choice — chart type, colour, ordering, annotation — should make that sentence easier to see. Anything that does not serve it is clutter.

Panels should each carry one part of the argument, in the order the text introduces them. Panel letters are not just labels; they are a reading order.

Choose a chart that matches the data

Distributions. For a few dozen measurements per group, show every point. Dot plots, strip plots with jitter, and box plots that overlay points show the spread and any outliers. A bar chart with an error bar hides the distribution entirely; for small samples it can suggest a precision the data do not have. The case against bar-and-error plots is set out in the sources below.

Relationships. Use a scatter plot, with a sensible aspect ratio so trends are not exaggerated. If you fit a line, show the uncertainty around it and say what the fit is.

Composition. Stacked bars are readable when there are few categories and one category dominates. With many small categories, the reader cannot compare them, and a dot plot or a small table is better.

Many features at once. Volcano plots, MA plots and heatmaps are standard in genomics for good reasons, but each has reading rules. The volcano plot guide covers thresholds, adjusted p-values and the mistakes reviewers catch.

Genome-scale tracks. Show the genomic coordinate system, the gene model, and the scale. A screenshot of a genome browser without coordinates is not a figure.

Colour has to work for everyone

A substantial fraction of readers, mostly men, have red–green colour vision deficiency. Others read on poor screens, print in greyscale, or view figures on a phone. Colour should help, not carry the meaning alone.

Practical rules:

  • Avoid red–green as the only contrast. Use blue–orange or another pair that differs in lightness as well as hue.
  • Use a known accessible palette. The Okabe–Ito palette was designed for colour-vision deficiency. ColorBrewer provides palettes marked as colour-blind safe for both categorical and sequential data.
  • Use perceptually uniform maps for continuous values. Viridis and its relatives (available in matplotlib) avoid the false boundaries and uneven lightness steps of rainbow maps. Do not use jet.
  • Add a second channel. Different shapes, line types or direct text labels let the figure survive greyscale printing and colour-vision deficiency.
  • Check in greyscale. Convert the figure to greyscale and see whether the categories remain distinguishable.
  • Keep colour meaning consistent. If blue means "treated" in one panel, it should not mean "downregulated" in the next.

Colour is also a quantity. If a map encodes a value, include the colour bar with units and make the limits explicit. Truncating a sequential scale can make small differences look dramatic.

Order, axes and scales

Category order should mean something: by size, by pathway, by time, or alphabetically. Arbitrary order makes the reader hunt.

Bar charts should start at zero, because the bar's length is the encoding. Line charts and scatter plots do not have to, but a truncated axis must be obvious and justified. Log scales need to be labelled as log, with tick values that make sense to a biologist.

Use the same scale across panels that will be compared. If panel A and panel B have different y-axis ranges, a reader who compares them will draw the wrong conclusion unless the difference is clearly marked.

Text, labels and panel design

  • Label directly where possible instead of relying on a legend.
  • Put units on axes and state what the error bars represent in the caption (standard deviation, standard error, confidence interval, or range).
  • Size text for the final printed width, not the width on your screen. Text that looks fine at 20 cm wide can be unreadable at 8 cm.
  • Use consistent fonts and a consistent visual style across panels.
  • Remove chart junk: heavy gridlines, unnecessary 3D effects, shadows, and decorative backgrounds.
  • Use panel letters in a consistent position, usually top left.

Resolution, format and file size

Vector formats (PDF, SVG, EPS) keep lines and text sharp at any size and are preferred for charts, diagrams and genome tracks. Raster formats (PNG, TIFF) are needed for photographs, microscopy and some heatmaps, and journals usually ask for a specific resolution at final size. Check the journal's author guidelines before you export, because requirements differ.

Export at the size the figure will be printed, not larger and then shrunk. Shrinking a raster image after export can blur text; shrinking a vector image is fine.

Embed fonts in PDFs, or convert text to outlines only if the journal allows it. Outlined text cannot be searched or edited, and some journals reject it.

Captions and alternative text

A caption should let the figure be understood without the main text. State what is shown, what the axes and colours mean, the sample size, the statistical test if one is shown, and what the error bars represent.

Alternative text is increasingly required for accessibility. Describe the message, not the pixels: "Expression of eight genes is higher in treated samples, with the largest change in gene X" is better than "bar chart".

Making figures reproducible

A figure that cannot be regenerated is a liability. Keep the plotting script, the input data and the software versions together. Save the script that produced the final version, not just the exported image. If a reviewer asks for a change in colour or axis limits, you should be able to rerun it in minutes.

This is the same discipline described in reproducible analysis for small labs, and it feeds directly into the methods section, where you should state the plotting software and version.

Key points

  • Write the one-sentence message before choosing a chart.
  • Show distributions with points, not just bars and error bars.
  • Use colour-blind-safe palettes and a second channel such as shape or labels.
  • Keep axes, scales and category order meaningful and consistent across panels.
  • Size text for the final printed width and export vector formats where possible.
  • Write a self-contained caption and useful alternative text.
  • Keep the plotting script and data so the figure can be regenerated.

When to ask for help

If you have results but the figures are not communicating them, we can produce publication-ready figures from your data, with accessible palettes, clear panels and a script you can rerun. You can order an analysis. For the analysis behind the figure, see our RNA-seq workflow.

Sources

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.