From a Published Figure to a Living Chart: Figure Reconstruction in CanvasXpress

Every bioinformatician knows the frustration. You are reading a paper, you reach a figure that matters to your work — a volcano plot of differential expression, a Kaplan–Meier survival curve, a bar chart of effect sizes — and you want to do something with it. Replot it with your own thresholds. Overlay your genes. Compare it against your own cohort. But all you have is a flat picture embedded in a PDF. The data is somewhere, but the figure itself is dead pixels.

CanvasXpress now closes that gap. Point it at a publication URL and name a figure, and it will fetch the article, locate the figure, and rebuild it as a live, interactive chart you can manipulate — not a tracing of the picture, but, wherever the paper makes it possible, a chart rebuilt from the figure's actual source data.

Three ways to recover a figure

Recovering a chart from a publication is not one problem but three, and CanvasXpress handles each at the highest fidelity available.

Exact recovery. CanvasXpress embeds a reproducible-research payload inside every PNG it exports. When the figure in a paper was itself made with CanvasXpress, reconstruction is lossless: the original data and configuration are read straight back out of the image, and you get a byte-for-byte copy of the live chart.

Visual reconstruction. When the figure is an ordinary image from any tool, a vision step reads the plot — its marks, axes, series, and groupings — and produces a normalized chart specification. The figure's caption is used as a hint for axis titles, units, and group names, but never as a source of values; the numbers come from the pixels. Bar, line, area, stacked, dot, scatter, pie, box, and heatmap figures all reconstruct this way.

Data-source recovery. This is the capability that makes the difference for genomics. A volcano plot or a survival curve does not carry its values in the picture — thousands of genes collapse into a cloud of dots, and no amount of vision can recover each gene's exact fold-change and p-value. But those values are almost always in the paper — in a supplementary table, behind a data-availability link, or in a repository accession. CanvasXpress follows those links, finds the right table among the dozen a supplement may contain, maps its columns, and rebuilds the figure from the real numbers using the engine's native Volcano and KaplanMeier chart types.

Why rebuilding from data matters

Consider a volcano plot. Reconstructed from pixels, you would get an approximate scatter that looks like the original. Reconstructed from the supplementary differential-expression table, you get every gene back, with its exact log2 fold-change and adjusted p-value, the significance cutoffs the caption stated, and full interactivity: hover a point to read the gene, re-threshold on the fly, recolor, export. The row count matches the table's gene count, the axis extents match the table's range, and the number of significant hits matches exactly. That is not a picture of a result — it is the result, back in your hands.

It is honest about what it can and cannot do

Reconstruction records its provenance on every output: the source URL, the figure number, which recovery path was used, a confidence level, the license of the source, and when it was fetched. Confidence is derived from the mechanics, not asserted by a model — an exact payload read is marked exact; a data-backed rebuild where every required column matched by rule is high; a vision reconstruction that validated cleanly with caption-supplied titles is medium.

It is also careful about access. Reconstruction works on open-access content, honors robots.txt, reads and records licenses, and refuses to circumvent paywalls or access controls. When a figure's embedded data was password-protected, it says so and falls through to the vision path rather than attempting to decrypt anything.

Using it

The capability is exposed as a single tool that takes a URL and a figure number:

reconstruct_figure_from_url(
  url = "https://<open-access-article>",
  figure = 3,
  want_dashboard = false
)

It returns a ready-to-render CanvasXpress {data, config} plus the provenance block. Set want_dashboard to true and it additionally emits a single-panel dashboard specification — the reconstructed chart on one panel and a provenance panel beside it showing the source link, figure number, recovery path, confidence, and license — so a recovered figure drops straight into a shareable dashboard.

From there it is an ordinary CanvasXpress chart. You render it in a page with new CanvasXpress(...), and every interaction the engine supports is available: zoom, filter, recolor, restyle, re-threshold, and export back to a reproducible PNG that itself carries the payload for the next person.

What this unlocks

For a genomics group, figure reconstruction turns the published literature into a reusable asset. A reviewer can re-derive a volcano plot from its supplement and check the authors' thresholds in seconds. A meta-analyst can pull the same figure from twenty papers and bring them onto one axis. A student can take a static survival curve and make it interactive to understand it. And because CanvasXpress figures carry their own data, every figure you publish becomes trivially reconstructable by the next reader — reproducibility that travels with the image.

The dead picture in the PDF was never really dead. The data was there all along. CanvasXpress just makes it live again.