In 1857 and 1858, Florence Nightingale's polar-area diagrams showed that preventable disease caused more deaths among British soldiers than combat injuries, a comparison that tables had failed to make vivid (National Curve Bank's milestone history). Scientific data visualization still does that job. It encodes measurements as position, length, angle or color so a reader can recover values, compare groups, and judge uncertainty.
Treat a figure as a measuring instrument, because that's what it is. You choose the chart from the analytical question, you put the number on the channel readers decode most accurately, and you ship the figure with the data and code that regenerate it. Most figure problems in published papers come from one of those three decisions being made by habit rather than on purpose.
Matching Chart Types to the Question You Ask
Scientific data visualization is the practice of encoding measurements as position, length, angle or color so a reader can recover values, compare groups and see uncertainty and provenance. The chart follows the question, not the aesthetic. PlotStudio AI is one tool that keeps the resulting figure beside the analysis that produced it, so the chart and its reasoning stay in one place.
Read the table below as a lookup, not a hierarchy. Every row begins with a question a researcher asks of a dataset.
| Question the figure answers | Chart type | Visual channel | Main limit |
|---|---|---|---|
| Exact values or estimates across groups | Aligned dot plot or point estimates with intervals | Position on a common axis | Needs a labeled axis and clear group names |
| Change over time | Line chart | Position along a shared time axis | Hard to read with many overlapping lines |
| Ranking categories | Horizontal bar chart | Length from a zero baseline | Bars must start at zero to stay honest |
| Distribution of one variable | Histogram or box plot | Position and density | Bin width changes the apparent shape |
| Relationship between two continuous variables | Scatterplot | Two aligned position axes | Overplotting hides density without transparency or binning |
| Values over a two-dimensional grid | Heatmap | Color | Colormap choice controls what readers perceive |
| Spatial pattern | Choropleth or dot map | Color or position on geography | Raw counts mislead unless normalized |
| Broad pattern discovery | Bubble chart or treemap | Area | Poor for reading exact values |
Working two rows on real data
Say a genotype trial compares mean yield across four lines, each with three field replicates. The question is exact estimates across groups, so the chart is an aligned dot plot with confidence intervals on one axis. A bubble chart of the same data forces the reader to estimate area, which is the least accurate channel available. The dot plot answers "which lines differ, and by how much" in a single glance.
Now switch to a longitudinal treatment response measured at six visits. The question is change over time, so the chart is a line per patient on a shared time axis, with the group mean drawn heavier. The limit in that row bites immediately: twenty individual lines become a thicket, so either move to small multiples or fade the individual traces and keep the mean and interval. When the question shifts from a group comparison to the relationship between two continuous variables, the same reasoning applies to axis construction and overplotting, which our scatter plot and regression line guide covers in detail.
Rule for reading the lookup: name the question in one sentence, read the chart and channel columns, then read the limit column before you commit. If the limit describes your data, change the chart.
The selection procedure itself is three steps. Write the question as a sentence with a subject and a comparison, for example "does line B out-yield line A in the irrigated block". Choose the channel the reader must judge, which for a pairwise difference means position on a common axis. Then verify recovery: labels with units, a stated n, and a colleague who can read the number off the figure without asking you what it means.
Why Position Beats Area for Reading Numbers
The visual channel carrying a value determines how precisely a reader can recover it. Cleveland and McGill's graphical-perception experiments tested position, length, angle, slope, area and color directly and produced a stable ordering: position along a common scale first, length second, angle and slope third, area last (their graphical-perception study). The gap is measurable. In one reported comparison, position judgments were 1.96 times as accurate as angle judgments, and average errors for length judgments ran 40% to 250% larger than errors for position judgments, depending on the task.
| Visual channel | Accuracy rank | Typical scientific use | Caution |
|---|---|---|---|
| Position on a common scale | 1 (most accurate) | Point estimates, effect sizes, confidence intervals | Keep all series on the same axis |
| Length | 2 | Bar charts for ranking and magnitude | Start bars at zero |
| Angle and slope | 3 | Line slopes for trend comparison | Less precise than position; label values directly |
| Area | 4 (least accurate) | Bubbles, treemaps, pie slices for broad patterns | Do not use when readers must read small differences |
The same treatment effect drawn two ways
Take a trial with two arms and an estimated effect of 0.31 standard deviations per arm, each with a 95% interval. Drawn as a pie chart, the two slices encode the effects as angle and area, the two weakest channels in the ranked table. A reader can see that one slice is bigger. A reader cannot reliably say whether the interval on the smaller arm crosses the larger arm's point estimate.
Drawn as an aligned dot plot, both estimates sit on one axis with their intervals drawn as horizontal bars. Overlap becomes a visible geometric fact rather than an inference from wedge size. That is the whole argument: the encoding, not the styling, decides what the reader can conclude.
Where area still earns its place: early exploration, when you want to see clustering or gaps across hundreds of points and no one is reading individual values off the figure.
The practical rules follow directly. Map the analytical task to the channel. Use common-axis position for parameter estimates, effect sizes and interval comparisons. Use length when ranking matters more than exact reading, as in a prioritized list of twenty categories. Add tick marks, direct labels, uncertainty intervals and a zero baseline wherever length encodes magnitude. Avoid area and angle when readers must distinguish small differences, which is precisely the case where pie slices, bubbles and radial gauges fail, and the reason our guide to interpreting pie charts keeps arriving at the same conclusion from the reader's side.
Choosing Colormaps That Preserve Your Data
Color is a measurement decision, and the colormap is part of the instrument. A perceptually uniform colormap makes equal numerical steps appear as roughly equal perceptual steps, and monotonically increasing lightness lets readers rank ordered values without consulting the legend (Matplotlib's colormap guidance). Get this wrong and the figure reports structure that isn't in the data.
Map families as a decision lookup
Sequential maps suit fields with one meaningful direction: concentration, intensity, temperature, depth. Diverging maps require a scientifically meaningful midpoint, such as zero error or a clinical threshold, and should never be used because the palette looks attractive. Cyclic maps belong to angle and phase, where the ends of the scale meet.
Rainbow-style maps fail in three specific ways. They manufacture boundaries where the gradient happens to pass through a hue change, they hide gradual change inside a band of similar lightness, and they exaggerate regions where perceived lightness shifts quickly. A reader tracing a plume across a rainbow map is reading the palette, not the measurement.
Color-vision deficiency makes the choice non-optional. Scientific colormap research explicitly evaluates designs for accurate interpretation by viewers with color-vision deficiency, which is why viridis and cividis exist and why red-to-green contrasts should be retired for ordered data.
The residual heatmap
Say you fit a model and want to inspect residuals over a two-dimensional grid of sites and seasons. Errors run positive and negative around zero, so the midpoint is meaningful and a diverging map centered at zero is correct. Positive and negative errors then separate visually, and a systematic band of one sign becomes obvious. A sequential map on the same residuals would hide the sign change inside a single hue ramp.
Color also translates to quantity nonlinearly, and the translation varies between viewers. When a distinction is consequential, support color with contours, direct labels, symbols or texture rather than leaning on saturation alone.
Colorbar rule: numeric ticks, units, and stated limits. A colorbar labeled "low" to "high" is a legend for a feeling, not a measurement.
Making Figures Readable Without Relying on Color
The usual advice stops at picking a color-blind-safe palette, and that advice is incomplete. A 2025 scoping review found that only 32 of 55 guideline papers (58%) explicitly recommended high contrast, while just 14 (25%) recommended color-vision-deficiency-safe palettes (ACM, 2025). The audience is wider than most figure legends assume: readers with color-vision deficiency, readers with low vision, and screen-reader users who never see the panel at all.
Here's a walkthrough of the redundancy principle in practice.
One multi-series plot, three redundant encodings
Take a line plot with four treatment arms across eight weeks. In the current draft, all four lines are the same weight and shape, distinguished only by hue. Convert the figure to grayscale and the plot collapses into four identical curves.
Three changes repair it. Give each series a distinct marker shape at every measured point. Vary the line style, solid, dashed, dotted, and dash-dot. Then label each line directly at its right-hand endpoint instead of relying on a legend, so the reader never has to travel between box and curve. Identity now survives grayscale, print, and a photocopier.
Color is most overloaded in heatmaps, dense scatterplots, choropleths and multi-series plots. Those four chart types deserve the audit first, because in each one color is doing work that a second channel could share.
The audit to run before any figure leaves the lab
- Contrast: check text and key marks against the background with a contrast checker, not by eye.
- Grayscale: convert the whole figure and confirm every distinction you rely on still reads.
- Redundant encoding: every color-coded series needs a shape, pattern or direct label.
- Alt text: state the finding, not the chart type. "Line B out-yields A from week 3" beats "line chart of yields".
- Caption: sample size, method, and what the intervals represent.
- Interactive version: confirm it can be used without a mouse.
A failed check should produce a named repair, not a note that the figure "could be improved". Our own work on interactive data visualization follows the same principle: interactivity adds a channel, and it doesn't excuse a static panel that fails in grayscale.
Showing Uncertainty Without False Confidence
A single error bar is the most common false comfort in scientific figures. It looks like uncertainty has been handled. In practice it compresses sampling variation, measurement noise, missing data and model choice into one symmetric symbol, and the reader has no way to tell which one they are looking at.
A 2025 CHI study describes uncertainty as "malleable" and argues that users should be given agency to define which sources of doubt matter, and to highlight or fade uncertain data accordingly (ACM CHI, 2025). That reframing matters, because the useful questions are not "which chart shows uncertainty" but "uncertainty about what, produced by which assumption, and material to which conclusion".
| Uncertainty source | Example | How to show it | Question to answer |
|---|---|---|---|
| Sampling variation | Confidence interval for a treatment mean | Interval bars with n stated | How much would the estimate move in another sample? |
| Measurement error | Assay precision around each measured value | Error bars labeled with the measurement method | Does instrument noise approach the size of the effect? |
| Missing data | Dropped visits in longitudinal data | Sample size per point and imputation status | Does missingness depend on the outcome? |
| Model assumptions | Linear versus nonlinear fit | Alternative model curves overlaid | Does the conclusion survive the alternative model? |
| Data volatility | Measurements shifting across time windows | Shaded range with the source and time window | Is the trend stable across windows? |
What the interval never shows
Say a mixed model returns a treatment effect with a 95% confidence interval of 0.18 to 0.44. The figure shows that interval, plus the effect estimated under two alternative specifications: one without the site random effect, one with a different covariate set. If the alternative estimates land at 0.05 and 0.31, the specification range is wider than the interval suggests, and no amount of interval styling communicates that.
Overlay the three estimates and the reader sees model uncertainty directly. Add the number of observations behind each point and the precision differences become visible too. The interval answers a sampling question under one model; the spread across specifications answers the question a skeptical reviewer asks.
Test to apply to every uncertainty graphic: state what is uncertain, which assumption produces it, which transformation propagates it, and whether it is material to the conclusion. If you can't answer all four, the symbol is decoration.
Figures should make these alternatives inspectable rather than burying them in a supplement. The same logic governs how you interpret and present confidence intervals in the text, so the figure and the paragraph make the same claim.
How to Build a Reproducible Figure Workflow
A PNG is not a figure. Independent reproduction generally requires four things together: source code, input data, execution context, and generated outputs (provenance-aware visualization research). Miss any one and a colleague can look at your chart but cannot rebuild it.
The FAIR Guiding Principles give the data-management frame: Findability, Accessibility, Interoperability and Reusability, applied to analytical pipelines as well as datasets, with provenance recorded so others can see where data came from and how it was transformed (Wilkinson et al., Scientific Data).

Before any of that, agree on file naming and storage best practices for the project, because a workflow that can't find its own inputs isn't reproducible regardless of how clean the code is.
Seven steps, with the slip that breaks each one
- Freeze the raw input and record a checksum. The reason: every downstream number inherits the input's identity. The slip: editing the raw file in place after a reviewer question, which invalidates every figure already made.
- Write the figure script so every transformation is explicit. Recoding, filtering and aggregation belong in code, not in a spreadsheet step nobody can see.
- Record the execution environment, including library versions and random seeds. A clustering figure that shifts between runs is usually an unseeded algorithm, not a data problem.
- Save the plotted data beside the figure. A small CSV of exactly what was drawn lets a reader check the figure against its source without rerunning anything.
- Record provenance linking input, code and output with the W3C PROV model, which represents the relationships among data, activities and agents in a computational process.
- Export vector and keep the source file. The editable original is the only thing that survives a request to change one label at proof stage.
- Package code, inputs, outputs and metadata as an RO-Crate, which is how the provenance JSON and the files stay machine-readable and reusable together.
The reviewer test: a referee asks for a different outlier rule. With the packaged workflow you change one parameter, regenerate, and the diff shows exactly which values moved. Without it, you redraw by hand and hope.
That traceability is the point of building a figure as an artifact rather than a picture, and it's the same standard we hold for research reproducibility more broadly.
Making Figures Publication Ready for the Journal
Journal technical checks are mechanical, and they reject figures for mechanical reasons. Set the format before you refine the content, because rescaling at the end undoes typography work.
- Set the final column width first, before placing any text, so nothing gets rescaled downstream.
- Set type at 7 to 8 pt sans-serif at final size and hold it constant across panels.
- Keep line weights at 0.5 pt or heavier and make open markers large enough to survive print reduction.
- Export vector (PDF, EPS or SVG) for charts and line art; keep 300 to 600 dpi TIFF or PNG for photographs, micrographs and dense heatmaps.
- Confirm the color mode. RGB for online, CMYK for print, then check that conversion hasn't collapsed two near-identical colors into one.
- Label panels A, B, C at one size and position, and refer to them in that order in the caption.
- Write the caption to state n, the test or model, the uncertainty shown, and the software used.
- Strip chartjunk: no 3D effects, no gradient fills that imply value, no grid lines that duplicate tick marks.
| Element | Target | Why it matters |
|---|---|---|
| Figure width | Final column width, 85 mm for a single column | Prevents text and line weights being rescaled |
| Body type | 7 to 8 pt sans-serif at final size | Stays legible in print and at PDF zoom |
| Line weight | 0.5 pt or heavier | Survives PDF rendering and press reduction |
| Chart export | PDF, EPS or SVG | Vector line art stays sharp at any size |
| Raster output | 300 to 600 dpi TIFF or PNG | Enough detail for photographs and heatmaps |
| Color mode | RGB for online, CMYK for print | Avoids muddy or collapsed colors after conversion |
| Panel labels | A, B, C at one size and position | Lets the caption point to panels in order |
| Caption | n, test or model, uncertainty shown, software | Makes the figure readable without the methods section |
A two-panel figure rebuilt at 85 mm shows why order matters. The first submission carried 6 pt labels that fell below the journal's minimum, a legend built on a rainbow ramp that lost two categories in CMYK conversion, and hairline axes that vanished at press resolution. Rebuilding at final width with 7.5 pt type, a sequential map and 0.75 pt rules passed the same check without touching the science.
Check Every Figure Before You Submit
A figure earns submission the way an instrument earns calibration: it passes fixed checks in a fixed order. The 4E rules supply that order, Evidence, Efficiency, Emphasis and Ethics, drawn from a 2024 public-health visualization framework (Journal of Public Health Policy, 2024). The framework also names proximity, similarity, continuity and closure as the perceptual mechanisms that steer how a reader groups marks, which is why a poorly spaced legend can imply a relationship the analysis never tested.
Ask four questions, in order. Is every displayed claim backed by the plotted data and its stated context? Does the encoding match how readers compare values, position over length over area? Is the main result the most prominent thing in the panel? Could a truncation, an aggregation or a scale choice mislead someone who reads the figure quickly? A figure that fails any one of these goes back, not out.
One verdict, worked through
A submitted figure draws its main effect as a bubble chart with the value axis truncated and no n stated. Evidence fails first: the reader cannot tell how many observations sit behind each bubble. Efficiency fails next, because area is the weakest channel for a claim about a precise difference. Emphasis is inverted, since the largest bubble is a control condition. Ethics fails last, because the truncated axis exaggerates the treatment gap.
The repairs are specific. Redraw as an aligned dot plot on a common axis. Where length encodes a magnitude, start the baseline at zero. State n per group, name the model and the uncertainty source in the caption, and note any aggregation that produced the plotted values. Ordering the checks matters because each verdict converts into an action, and a figure that survives all four can defend itself without its author in the room.
Traceability is what makes that defense practical. PlotStudio AI is built for it: every question produces a permanent Analysis Page holding the tables, charts, statistical tests and interpretation together, so any figure can be walked back to the data that drew it. The work exports as a one-click PDF or as a Jupyter notebook with all code and outputs, and you can start with your own dataset at plotstudio.ai.
