Worked Examples
Validate figure source reconciliation — Visualization & Graphing
Validate figure source reconciliation — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Scientific objective Evaluate
Application area: Visualization & Graphing
Article classification: Scientific validation / Data provenance / Reproducibility
Audience: Researchers, scientific programmers, data analysts, software engineers, technical reviewers, and research publication editors
Technical level: Intermediate to advanced
Reference environment: Python 3, NumPy, pandas, Matplotlib, and pytest
Primary outputs: Reconciled figure dataset, numerical comparison report, rendering artifact, source checksum, and scientific acceptance record
Estimated reading time: 12–15 minutes, excluding practical exercises
1. Scientific objective
Figure source reconciliation establishes whether a scientific visualization faithfully represents the data and analytical methods from which it was produced.
A scientific figure is a derived research artifact. Its validity depends on the integrity of the source dataset, numerical transformations, statistical methods, visual encodings, and scientific interpretation.
The purpose of reconciliation is to demonstrate a traceable relationship between:
- The authoritative source data and their recorded version.
- Cleaning, filtering, aggregation, normalization, and other transformations.
- The validated numerical values supplied to the plotting engine.
- The graphical marks, coordinates, axes, legends, and annotations.
- The exported figure and its associated scientific claims.
Central acceptance criterion: Displayed numerical values must agree with authoritative source tables and documented transformation rules within scientifically justified tolerances.
Visual similarity alone is insufficient. Two figures may appear identical while relying on different source data, incorrect statistics, or incompatible units.
2. Establish the figure reconciliation contract
A reconciliation contract defines the information and invariants that must remain valid throughout the figure-generation pipeline.
| Property | Required information | Acceptance condition |
|---|---|---|
| Source identity | Dataset ID, version, and content hash | Source is uniquely identifiable |
| Source provenance | Origin, acquisition method, date, and rights | Source is traceable and authorized |
| Variables | Names, definitions, data types, and units | Variables match their intended scientific meaning |
| Coverage | Temporal and spatial extent | Figure represents the documented domain |
| Transformations | Filtering, aggregation, normalization, interpolation | Methods are documented and reproducible |
| Statistics | Formulas, estimators, and assumptions | Reported summaries recompute correctly |
| Missing values | Missingness indicators and exclusion policy | Missing data are not silently reclassified |
| Uncertainty | Measurement or model uncertainty and interval definition | Rendered intervals reflect documented calculations |
| Rendering | Engine, version, axes, scales, color, and geometry | Rendering configuration matches approved specification |
| Export | Format, dimensions, metadata, and hash | Output artifact is identifiable and reviewable |
| Accessibility | Numerical equivalents and figure descriptions | Essential information is available independently of the image |
This is a proposed logical contract, not a verified Sustainable Catalyst database schema or API specification.
3. Define the reconciliation pipeline
A figure should be produced through an explicit series of independently inspectable stages.
Authoritative source dataset
|
v
Source integrity verification
|
v
Schema, units, and coverage validation
|
v
Documented numerical transformations
|
v
Derived analysis table
|
v
Independent numerical reconciliation
|
v
Renderer input
|
v
Graphics construction
|
v
Visual and structural verification
|
v
Exported figure
|
v
Scientific review and publication
The reconciliation process should identify the first stage where the expected and actual representations diverge.
For example, if the derived analysis table is correct but displayed values are incorrect, investigate the plotting configuration or renderer adapter. If the derived table itself is incorrect, investigate the analytical transformation before modifying the visualization.
Do not change authoritative observations to make a graphic pass validation.
4. Mathematical foundations of reconciliation
4.1 Exact numerical correspondence
Let the reference vector be:
y = [y_1, y_2, ..., y_n]
Let the values extracted from the rendering input be:
y_hat = [y_hat_1, y_hat_2, ..., y_hat_n]
For a lossless transformation, the required relationship is:
y_hat_i = y_i
Exact equality is appropriate for values that should be preserved without numerical transformation.
4.2 Absolute and relative error
When floating-point operations or justified numerical transformations are involved, reconciliation may use a combined absolute and relative tolerance:
|y_hat_i - y_i|
<= atol + rtol * |y_i|
Here:
atolis the permitted absolute error.rtolis the permitted relative error.y_iis the authoritative reference value.
This is consistent with the general approach used by NumPy’s numerical comparison functions (Harris et al., 2020).
Tolerances must be chosen according to numerical precision, measurement resolution, and scientific requirements. A default tolerance is not automatically scientifically acceptable.
4.3 Root mean squared error
For N paired values:
RMSE = sqrt(
(1/N) * sum((y_hat_i - y_i)^2)
)
RMSE can summarize disagreement across a series. However, it may obscure localized discrepancies and does not replace point-by-point checking.
4.4 Maximum absolute error
E_max = max(|y_hat_i - y_i|)
Maximum absolute error is particularly useful when even one incorrect plotted value could materially affect interpretation.
4.5 Statistical aggregation
Suppose a figure displays group means:
mean_g = (1/n_g) * sum(y_i in group g)
The figure must identify which records belong to each group and how missing values, weights, and exclusions are handled.
For weighted data:
weighted_mean =
sum(w_i * y_i) / sum(w_i)
Weighted and unweighted means are not interchangeable.
4.6 Uncertainty intervals
For repeated independent observations, an approximate confidence interval for a population mean may be calculated using:
mean ± t_critical * s / sqrt(n)
where s is the sample standard deviation and the critical value comes from an appropriate Student’s t distribution.
This formula depends on statistical assumptions. It is not automatically appropriate for autocorrelated measurements, complex sampling designs, model ensembles, or systematic measurement uncertainty.
A rendered uncertainty interval must therefore be reconciled against its actual statistical definition, not simply checked for numerical symmetry.
5. Validate source identity and provenance
Before recomputing a figure, establish that the correct source dataset has been selected.
Record:
- Source dataset identifier and version.
- Original file or artifact location.
- Source record count and schema.
- Acquisition or publication date.
- Measurement units and variable definitions.
- Spatial and temporal coverage.
- Missing-value conventions.
- Data rights and access classification.
- Content checksum.
5.1 Cryptographic source identification
SHA-256 can be used to produce a cryptographic digest of an input file.
import hashlib
from pathlib import Path
def sha256_file(path):
digest = hashlib.sha256()
with Path(path).open("rb") as handle:
for chunk in iter(
lambda: handle.read(1024 * 1024),
b""
):
digest.update(chunk)
return digest.hexdigest()
A checksum supports file-integrity verification by identifying the exact byte sequence. It does not prove that the underlying measurements, source attribution, or scientific method are correct.
Semantically equivalent datasets may produce different hashes when formatting, ordering, metadata, or serialization differs.
6. Construct a deterministic reference fixture
The following synthetic dataset models a simple relationship between an experimental application rate and an illustrative response.
All numerical values are synthetic and do not represent environmental measurements.
| Record | Application rate (synthetic units) | Response (synthetic units) |
|---|---|---|
| A | 0 | 2 |
| B | 10 | 6 |
| C | 20 | 10 |
| D | 30 | 14 |
| E | 40 | 18 |
The analytical relationship is:
y = 2 + 0.4x
The expected properties are:
Record count: 5
Minimum response: 2
Maximum response: 18
Mean response: 10
Slope: 0.4
Intercept: 2
Residual sum of squares: 0
This fixture provides known numerical values against which an analysis table and plotting adapter can be tested.
7. Build and execute the reconciliation procedure
7.1 Prepare the environment
mkdir sc-figure-reconciliation
cd sc-figure-reconciliation
python3 -m venv .venv
source .venv/bin/activate
python -m pip install numpy pandas matplotlib pytest
python -m pip freeze > requirements-lock.txt
For a controlled research environment, record Python and library versions and use a reviewed dependency lockfile. The example environment is intended for demonstration rather than a certified production build.
7.2 Create the reconciliation script
Save the following as reconcile_figure.py.
import hashlib
import json
from pathlib import Path
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
OUTPUT = Path("reconciliation-output")
OUTPUT.mkdir(exist_ok=True)
def sha256_file(path):
h = hashlib.sha256()
with Path(path).open("rb") as f:
for chunk in iter(
lambda: f.read(1024 * 1024),
b""
):
h.update(chunk)
return h.hexdigest()
# Create a deterministic synthetic source.
source = pd.DataFrame({
"record_id": ["A", "B", "C", "D", "E"],
"application_rate": [0, 10, 20, 30, 40],
"response": [2, 6, 10, 14, 18]
})
source_path = OUTPUT / "source.csv"
source.to_csv(source_path, index=False)
# Reload the serialized source.
data = pd.read_csv(source_path)
assert data["record_id"].is_unique
assert len(data) == 5
assert data.notna().all().all()
x = data["application_rate"].to_numpy(
dtype=float
)
y = data["response"].to_numpy(
dtype=float
)
assert np.isfinite(x).all()
assert np.isfinite(y).all()
# Independently calculate the analytical reference.
expected = 2.0 + 0.4 * x
np.testing.assert_allclose(
y,
expected,
rtol=0,
atol=1e-12
)
# Calculate regression parameters.
slope, intercept = np.polyfit(x, y, 1)
fitted = slope * x + intercept
residuals = y - fitted
rmse = float(
np.sqrt(np.mean(residuals**2))
)
max_error = float(
np.max(np.abs(residuals))
)
assert np.isclose(slope, 0.4, atol=1e-12)
assert np.isclose(intercept, 2.0, atol=1e-12)
assert rmse < 1e-12
# Preserve the exact data passed to the renderer.
figure_data = data.copy()
figure_data_path = (
OUTPUT / "figure-data.csv"
)
figure_data.to_csv(
figure_data_path,
index=False
)
# Generate the figure.
fig, ax = plt.subplots(
figsize=(8, 5),
dpi=150
)
line, = ax.plot(
x,
y,
marker="o",
linewidth=1.5,
label="Synthetic observations"
)
ax.set_xlabel(
"Application rate (synthetic units)"
)
ax.set_ylabel(
"Response (synthetic units)"
)
ax.set_xlim(0, 40)
ax.set_ylim(0, 20)
ax.legend()
ax.grid(alpha=0.3)
fig.tight_layout()
# Compare the plotted coordinates directly.
np.testing.assert_allclose(
line.get_xdata(),
x,
rtol=0,
atol=0
)
np.testing.assert_allclose(
line.get_ydata(),
y,
rtol=0,
atol=0
)
figure_path = OUTPUT / "figure.png"
fig.savefig(
figure_path,
dpi=150
)
plt.close(fig)
# Preserve source and output integrity evidence.
report = {
"fixture": "synthetic_linear_response",
"record_count": int(len(data)),
"expected_slope": 0.4,
"calculated_slope": float(slope),
"expected_intercept": 2.0,
"calculated_intercept": float(intercept),
"rmse": rmse,
"maximum_absolute_error": max_error,
"source_sha256": sha256_file(source_path),
"figure_data_sha256": sha256_file(
figure_data_path
),
"figure_sha256": sha256_file(figure_path),
"numerical_reconciliation": "pass",
"renderer_coordinate_check": "pass",
"visual_review": "not_tested",
"scientific_review": "not_tested"
}
report_path = (
OUTPUT / "reconciliation-report.json"
)
report_path.write_text(
json.dumps(report, indent=2),
encoding="utf-8"
)
print("Numerical reconciliation: PASS")
print("Renderer coordinates: PASS")
print("Slope:", slope)
print("Intercept:", intercept)
print("RMSE:", rmse)
print("Source SHA-256:", report["source_sha256"])
print("Figure SHA-256:", report["figure_sha256"])
7.3 Execute the reconciliation
python reconcile_figure.py
Expected numerical properties:
Numerical reconciliation: PASS
Renderer coordinates: PASS
Slope: approximately 0.4
Intercept: approximately 2.0
RMSE: approximately 0
Source SHA-256: [calculated digest]
Figure SHA-256: [calculated digest]
Floating-point output may differ slightly in its printed representation. The checksum values must be recorded from actual execution rather than copied from a reference document.
Generated files:
reconciliation-output/
source.csv
figure-data.csv
figure.png
reconciliation-report.json
The code verifies source values, regression properties, and coordinates supplied to Matplotlib. It does not independently certify the rasterized pixels, visual accessibility, publication quality, or validity of a real scientific model.
8. Compare source, analysis, and plotted values
Reconciliation should operate at three distinct levels.
8.1 Source-to-analysis reconciliation
Compare the authoritative input table with the transformed analysis output.
For transformations intended to preserve all records, verify:
- Record identifiers.
- Row counts and ordering where relevant.
- Numerical values.
- Data types and units.
- Missingness.
- Temporal and spatial coordinates.
For transformations that intentionally aggregate or filter data, compare against the independently recomputed expected result rather than requiring source and derived tables to be identical.
pandas provides structured comparison functions such as pandas.testing.assert_frame_equal(), which can verify data types, labels, values, and other DataFrame properties (pandas development team, n.d.).
8.2 Analysis-to-renderer reconciliation
Inspect the actual numerical values and ordering supplied to the renderer.
Where available, use renderer-specific accessors to examine plotted coordinates, marker positions, bar heights, error intervals, or geometry vertices.
Be aware that not every renderer exposes an exact numerical reconstruction of every displayed mark.
8.3 Renderer-to-export reconciliation
The export process may change font metrics, resolution, clipping, layout, or rendering backends.
Inspect the exported image independently. Confirm that:
- Required marks are visible.
- Axis limits match the approved figure specification.
- Labels and legends remain readable.
- Uncertainty intervals and annotations are preserved.
- Nothing material is clipped or omitted.
- No unauthorized metadata or sensitive data are exposed.
9. Automated negative and regression tests
A figure reconciliation service must reject or explicitly handle invalid input rather than generating misleading graphics.
The following tests can be run with pytest.
Save as test_reconciliation.py.
import numpy as np
import pandas as pd
import pytest
def validate_figure_source(data):
required = {
"record_id",
"application_rate",
"response"
}
if not required.issubset(data.columns):
raise ValueError("Missing required fields")
if len(data) == 0:
raise ValueError("Empty source")
if data["record_id"].isna().any():
raise ValueError("Missing identifier")
if not data["record_id"].is_unique:
raise ValueError("Duplicate identifiers")
for column in [
"application_rate",
"response"
]:
values = pd.to_numeric(
data[column],
errors="coerce"
).to_numpy(dtype=float)
if not np.isfinite(values).all():
raise ValueError(
"Invalid numerical source"
)
return True
def valid_fixture():
return pd.DataFrame({
"record_id": ["A", "B", "C"],
"application_rate": [0, 10, 20],
"response": [2, 6, 10]
})
def test_valid_fixture():
assert validate_figure_source(
valid_fixture()
)
def test_empty_source_rejected():
with pytest.raises(ValueError):
validate_figure_source(
valid_fixture().iloc[:0]
)
def test_duplicate_ids_rejected():
data = valid_fixture()
data.loc[1, "record_id"] = "A"
with pytest.raises(ValueError):
validate_figure_source(data)
@pytest.mark.parametrize(
"bad_value",
[np.nan, np.inf, -np.inf]
)
def test_invalid_values_rejected(bad_value):
data = valid_fixture()
data.loc[1, "response"] = bad_value
with pytest.raises(ValueError):
validate_figure_source(data)
def test_corrupted_figure_values_detected():
data = valid_fixture()
expected = data[
"response"
].to_numpy(dtype=float)
corrupted = expected.copy()
corrupted[1] += 5.0
with pytest.raises(AssertionError):
np.testing.assert_allclose(
corrupted,
expected,
rtol=0,
atol=1e-12
)
def test_source_values_unchanged():
data = valid_fixture()
original = data.copy(deep=True)
validate_figure_source(data)
pd.testing.assert_frame_equal(
data,
original
)
Execute:
python -m pytest -v test_reconciliation.py
The test definitions cover eight individual cases because the invalid-value test is parameterized for three inputs. Passing results must be verified through actual execution.
10. Validate axes, scale, grouping, and categorical order
Correct numerical values can still be communicated misleadingly through inappropriate rendering decisions.
10.1 Axis ranges
Inspect whether axis limits omit relevant data or visually exaggerate differences.
For example, a bar chart with a truncated zero baseline may strongly exaggerate small differences in magnitude.
Truncation is not universally prohibited, but its use must be appropriate for the chart type and scientific purpose.
Matplotlib supports explicit axis limits and automatic scaling; these settings influence the visible representation and should be retained in figure metadata (Matplotlib Development Team, n.d.).
10.2 Logarithmic transformations
A logarithmic scale can improve interpretation across orders of magnitude but changes the visual relationship between values.
z = log10(y)
This transformation requires an appropriate domain, normally positive values for an ordinary real logarithm.
Do not silently substitute logarithmic scale, pseudocounts, or transformed data for linear measurements.
10.3 Categorical ordering
Categories may be ordered alphabetically, chronologically, numerically, by magnitude, or according to a domain-specific rule.
The intended order should be explicit and reproducible.
A renderer must not silently reorder categories when doing so changes the intended comparison or interpretation.
10.4 Grouping and aggregation
Compare displayed group summaries with independent calculations.
Changing grouping boundaries can materially change apparent trends. Record grouping rules and assess whether alternative defensible groupings affect the interpretation.
11. Validate uncertainty and statistical annotations
Scientific figures may contain error bars, confidence intervals, prediction intervals, significance markers, and fitted relationships.
These elements must be derived from documented methods.
For each uncertainty representation, record:
- Uncertainty type and statistical meaning.
- Confidence or coverage level where applicable.
- Sample size and grouping.
- Calculation method and assumptions.
- Relevant measurement units.
- Whether intervals are symmetric or asymmetric.
Do not assume that all error bars represent standard deviations or confidence intervals.
An interval may represent instrument uncertainty, standard error, variability among observations, model ensemble spread, or another quantity.
The caption and legend must accurately identify the interval definition.
12. Spatial and temporal reconciliation
When figures contain geographic or time-dependent data, reconciliation must include coordinate integrity.
12.1 Temporal coverage
Verify:
- Observation timestamps and time zones.
- Temporal aggregation and sampling intervals.
- Missing observation periods.
- Interpolation and extrapolation policies.
- Reference periods and comparison windows.
When applicable, distinguish observation time, processing time, and forecast valid time.
12.2 Spatial coverage
For geospatial figures, verify:
- Horizontal coordinate reference systems.
- Vertical datums and elevation units.
- Spatial resolution and extent.
- Raster alignment and resampling.
- Coordinate transformations.
- No-data masks and clipping boundaries.
Visual similarity between geographic layers does not prove geospatial alignment.
13. Source-to-figure provenance manifest
A reproducible figure should retain a machine-readable description of its inputs, transformations, and rendering environment.
The following is an illustrative manifest, not an established Sustainable Catalyst API contract.
{
"schema_version": "example-1.0",
"artifact_type": "scientific_figure",
"figure_id": "synthetic-figure-001",
"source": {
"dataset_id": "synthetic-response-001",
"version": "1.0",
"classification": "synthetic",
"checksum_algorithm": "sha256",
"checksum": null
},
"analysis": {
"method": "linear_regression",
"record_count": 5,
"transformations": [],
"missing_data_policy": "reject",
"units": "synthetic_units"
},
"rendering": {
"engine": "matplotlib",
"engine_version": null,
"chart_type": "line_with_markers",
"x_axis": "application_rate",
"y_axis": "response",
"x_limits": [0, 40],
"y_limits": [0, 20]
},
"validation": {
"source_integrity": "not_tested",
"numerical_reconciliation": "not_tested",
"visual_review": "not_tested",
"accessibility": "not_tested",
"scientific_review": "not_tested"
},
"output": {
"format": "png",
"checksum": null
}
}
Populate actual hashes, library versions, code revisions, and test results during execution.
A provenance manifest records how a figure was constructed. It does not establish scientific validity by itself.
14. Accessibility and publication requirements
A scientific figure should remain interpretable by readers who cannot perceive color differences, inspect small visual marks, or access an interactive renderer.
Provide:
- Descriptive axis labels with units.
- Readable legends and meaningful captions.
- Accessible alternative text.
- Structured numerical tables when values are important.
- Non-color-only encodings for important distinctions.
- Appropriate font sizes and contrast.
- Explanations of uncertainty and graphical transformations.
WCAG 2.2 and W3C guidance on complex images provide relevant principles for accessible scientific publication (W3C, 2023; W3C WAI, n.d.).
A concise alternative description may summarize the central trend, while a linked table or extended description provides numerical details.
15. Scientific acceptance matrix
| Test | Pass condition | Evidence |
|---|---|---|
| Source integrity | Authoritative input version is identified and preserved | Dataset ID, revision, and checksum |
| Schema validation | Expected columns, types, and units are verified | Validation report |
| Source-to-analysis | Transformations reproduce expected analysis values | Independent calculations |
| Statistical summaries | Plotted statistics match defined estimators | Numerical comparison |
| Renderer coordinates | Graphical input coordinates match validated values | Renderer inspection |
| Scale integrity | Axis transformations and bounds are correct and disclosed | Rendering configuration |
| Category ordering | Categories match documented order and grouping | Ordering test |
| Missing data | Missingness is preserved or explicitly handled | Mask and exclusion tests |
| Uncertainty | Intervals and uncertainty definitions reconcile | Statistical review |
| Export consistency | Published artifact preserves required graphical information | Export inspection |
| Accessibility | Equivalent numerical information is available | Accessibility review |
| Reproducibility | Figure can be regenerated from retained inputs and methods | Independent execution |
| Scientific validity | Interpretation is supported by the data and assumptions | Scientific review |
Decision rule: Record each applicable criterion as Pass, Fail, or Not Tested. A figure should not be certified solely because its source hash matches or its rendering is visually convincing.
16. Independent review and sensitivity analysis
Independent review should evaluate both mathematical correctness and scientific interpretation.
The reviewer should determine whether the figure could support a materially different interpretation under reasonable changes to:
- Axis limits or transformations.
- Color normalization.
- Aggregation intervals.
- Category grouping.
- Missing-data treatment.
- Interpolation or smoothing.
- Uncertainty assumptions.
- Spatial or temporal selection.
Where such changes materially affect the conclusion, the figure should be accompanied by a sensitivity analysis or an explicit statement of its limitations.
Statistical and graphical sensitivity does not automatically imply invalidity. It identifies assumptions and methodological choices that require explanation.
17. Sustainable Catalyst cross-application integration
Figure reconciliation is relevant to Sustainable Catalyst’s intended research, analysis, visualization, and publication architecture.
The following describes a proposed division of responsibilities. These integrations require release-specific verification.
| Application | Intended responsibility |
|---|---|
| Library | Maintain source references, dataset identity, rights, and provenance |
| Workbench | Execute reproducible transformations, numerical analyses, and figure generation where implemented |
| Research Lab | Validate scientific methods, numerical outputs, and model assumptions |
| Visualization & Graphing | Preserve and inspect rendering configurations, data mappings, and exports |
| Site Intelligence | Validate geospatial datasets, coordinate systems, and spatial transformations where supported |
| Decision Studio | Assess figures and quantitative evidence used in scenario comparisons where supported |
| Research | Associate figures, methods, citations, and validation evidence with scientific publications |
| Workspace | Track ownership, review, approvals, and publication status |
The desired architectural relationship is:
Library source dataset
|
v
Reproducible analysis
|
v
Validated figure data
|
v
Rendering artifact
|
v
Reconciliation evidence
|
v
Scientific review
|
v
Research publication
No stage should be treated as automatically verified because an upstream stage has passed its tests.
18. Source audit and release verification
Before a Sustainable Catalyst figure-reconciliation capability is described as deployed or certified, retain evidence identifying:
- Owning repository and code revision.
- Actual validation and rendering modules.
- Input and output schemas.
- Source artifact persistence and versioning behavior.
- Supported transformations and their numerical semantics.
- Renderer and dependency versions.
- Relevant access-control and publication restrictions.
- Executed unit, integration, and regression tests.
- Runtime screenshots or inspected graphical artifacts.
- Actual acceptance results and outstanding defects.
Source-code presence and passing synthetic tests do not independently certify production deployment, real-dataset compatibility, or scientific validity.
19. Technical references
- Harris, C.R. et al. (2020). ‘Array programming with NumPy’, Nature, 585, pp. 357–362. Available at: https://doi.org/10.1038/s41586-020-2649-2.
- McKinney, W. (2010). ‘Data Structures for Statistical Computing in Python’, Proceedings of the 9th Python in Science Conference, pp. 56–61. Available at: https://doi.org/10.25080/Majora-92bf1922-00a.
- pandas development team (n.d.). pandas.testing.assert_frame_equal. Official API documentation. Available at: pandas documentation.
- Matplotlib Development Team (n.d.). Axis Autoscaling. Available at: Matplotlib documentation.
- Matplotlib Development Team (n.d.). Axis Scales. Available at: Matplotlib documentation.
- NumPy Developers (n.d.). NumPy Reference Documentation. Available at: https://numpy.org/doc/stable/.
- pytest Development Team (n.d.). pytest Documentation. Available at: https://docs.pytest.org/en/stable/.
- World Wide Web Consortium (W3C) (2023). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
- W3C Web Accessibility Initiative (n.d.). Images Tutorial: Complex Images. Available at: W3C WAI guidance.
20. Completion and verification record
| Field | Required record |
|---|---|
| Figure ID | Unique figure identifier and revision |
| Source dataset | Dataset identifier, version, and checksum |
| Transformations | Processing methods, parameters, and code revision |
| Numerical reconciliation | Pass, Fail, or Not Tested |
| Statistical reconciliation | Pass, Fail, or Not Tested |
| Rendering validation | Pass, Fail, or Not Tested |
| Scale and encoding review | Pass, Fail, or Not Tested |
| Uncertainty validation | Pass, Fail, or Not Tested |
| Export verification | Pass, Fail, or Not Tested |
| Accessibility | Pass, Fail, or Not Tested |
| Reproducibility | Pass, Fail, or Not Tested |
| Scientific review | Pass, Fail, or Not Tested |
| Reviewer | Actual reviewer identity and date |
| Evidence | Source tables, code, test receipts, figures, and hashes |
| Outstanding limitations | Unresolved source, numerical, rendering, or scientific concerns |
Completion criterion: The figure must be traceable to a defined authoritative dataset, its numerical and statistical values must reconcile with documented transformations, and its rendering and publication characteristics must satisfy applicable scientific, reproducibility, accessibility, and security requirements.
Scientific limitation: Reproducible figure generation cannot correct biased sampling, invalid model assumptions, inaccurate measurements, or unsupported causal inference. Source reconciliation establishes traceability and representational integrity; independent scientific validation remains necessary.
Current implementation status: Reconciliation methodology, synthetic reference procedures, and proposed acceptance criteria documented. No specific Sustainable Catalyst reconciliation service, renderer integration, or production capability is certified without source audit, executed tests, and deployment-specific acceptance.
