How to check figure–text consistency in a LaTeX paper

BlogEasyLaTeXPublished

Start with a sentence in the results that cites a figure. Find the panel in the PDF you plan to submit, read its caption, axes, and legend, then recalculate the number from the data used to make the plot. LaTeX can resolve the figure reference and compile without errors even when the sentence says “fell by 5%” and the plotted values tell a different story.

Trace each claim back to the plotting data

Keep the claim, caption, rendered figure, and plotting data together while you check them.

  1. Copy the exact claim. Record the figure and panel, the metric, and the groups being compared. If the sentence says “faster” or “significantly better,” identify the evidence for that wording.
  2. Open the submission PDF. Check that the reference points to the right panel. Read the axis units and range, check whether the scale is linear or logarithmic, and match each legend entry to the group named in the text. If there are error bars, check whether they represent standard deviations, standard errors, or confidence intervals. Overlap alone does not settle statistical significance.
  3. Find the inputs used for the plot. Record the data version, file, or run ID. Verify that the plot and prose use the same split, denominator, and aggregation. An average of group rates can differ from a single rate calculated across all observations.
  4. Recalculate, then search the manuscript. After correcting the results, check the abstract, conclusion, and supplement for the old value. Regenerate the figure, recompile, and open the final PDF to make sure it contains the new export.

A valid LaTeX build with the wrong claim

Suppose both methods use the same 1,000 test examples. The baseline makes 200 errors (20%) and the revised method makes 150 (15%). The error rate falls by 5 percentage points. Relative to the 20% baseline, it falls by 25%: (20 − 15) / 20 × 100%. A 5% relative decrease would take the rate to 19%. These are teaching values.

When reporting a relative change, give the reader the baseline.

Save this as main.tex. Use pdfLaTeX with TeX Live, the article class, and pgfplots with compatibility level 1.18. No external image is needed. The plotted values are 20 and 15, so the vertical axis is labeled in percent.

LaTeX
\documentclass{article}\usepackage{pgfplots}\pgfplotsset{compat=1.18}​\begin{document}On the test set, the error rate fell from 20\% to 15\%,a decrease of 5 percentage points (Figure~\ref{fig:test-error}).​\begin{figure}[htbp]  \centering  \begin{tikzpicture}    \begin{axis}[      ybar, width=8cm, height=5cm, bar width=18pt,      ymin=0, ymax=25, ytick={0,5,10,15,20,25},      ylabel={Error rate (\%)},      symbolic x coords={Baseline,Revised}, xtick=data,      enlarge x limits=0.65, nodes near coords,    ]      \addplot[fill=teal!60,draw=teal!80!black]        coordinates {(Baseline,20) (Revised,15)};    \end{axis}  \end{tikzpicture}  \caption{Illustrative test-set error rates. Both rates use    the same 1,000 examples: 200 baseline errors and 150 revised errors.}  \label{fig:test-error}\end{figure}\end{document}

With latexmk installed, run:

Shell
latexmk -pdf main.tex

In EasyLaTeX, select main.tex as the main file, compile with pdfLaTeX, and check Figure 1 in the PDF. Replace 5 percentage points with 5\% and compile again. Both versions build and point to Figure 1. Putting \label after \caption links the reference to the figure number; LaTeX does not check the arithmetic. See Captions, labels, and float placement.

Give an AI assistant a figure and a sentence to check

A November 18 arXiv preprint tested six multimodal models on 31 manuscripts, each with a documented figure–text inconsistency. Of 1,445 open-ended reviews, 60.6% mentioned the target figure or table and 3.3% met the study's rubric for diagnosing the documented conflict. In a separate controlled run, naming the target raised rubric-accepted diagnoses from 4.3% to 20.4%. A human audit found the rubric lenient and did not cover the controlled arms. These rates describe the benchmark, not general detection accuracy.

If your assistant can read images, give it the rendered page, caption, and exact sentence. Ask which panel, data point, or legend entry supports the claim, how it calculated any difference, and which details it could not verify from the figure. Check its answer against the plotting data. Silence from the assistant does not clear the figure. For the rest of the manuscript, see AI pre-submission review.

Pre-submission checklist for every figure

  • The text points to the right figure and panel in the final PDF.
  • The plot, caption, and text use the same groups, units, data split, and denominators.
  • The data version is recorded and the reported numbers can be recalculated from the plotting inputs.
  • The legend, axis scale, and meaning of error bars match the caption and methods.
  • The abstract and supplement use the current values, and the final PDF has the current plots.