Troubleshooting

Troubleshoot axis scales and units — Visualization & Graphing

Troubleshoot axis scales and units — Visualization & Graphing Cross-application area: Visualization & Graphing Status: Initial scientific graphics guidance; platform-specific features not verified. Recognize the defect The chart f

ProductSustainable Catalyst Research LabUpdatedNovember 14, 2026Reading time13 minutes

Application area: Visualization & Graphing
Article classification: Technical troubleshooting / Axis integrity / Scientific measurement
Audience: Researchers, scientific programmers, visualization developers, QA engineers, data analysts, and publication reviewers
Technical level: Intermediate to advanced
Reference environment: Python 3, NumPy, Matplotlib, and pytest
Relevant standards: International System of Units (SI), documented rendering specifications, and WCAG 2.2
Primary outputs: Root-cause assessment, corrected axis specification, numerical reconciliation, regression tests, figure comparisons, and correction evidence
Estimated reading time: 12–15 minutes, excluding practical exercises

1. Recognize the defect

An axis-scale or unit defect occurs when the numerical quantity displayed in a scientific figure differs from its intended measurement interpretation, or when an inappropriate graphical scale causes readers to misunderstand the relationship among values.

A chart may look internally consistent while containing incorrect conversions, hidden observations, invalid transformations, or misleading baselines.

Common symptoms include:

  • Measurements appear 1,000 times larger or smaller than expected.
  • Values have changed without a documented transformation.
  • Negative measurements are invisible.
  • A logarithmic axis silently omits zero or negative values.
  • Bar lengths exaggerate small differences.
  • Uncertainty intervals extend beyond the visible plotting range.
  • Axis labels identify the wrong unit.
  • Temperature values are converted with an incorrect offset.
  • Rates and totals are plotted as if they were equivalent quantities.
  • Scientific notation or decimal precision creates ambiguity.
  • Time-series observations have incorrect spacing.
  • Spatial coordinates are interpreted using the wrong reference system.
  • The exported figure differs from the interactive preview.
  • Cached rendering state uses an outdated unit or scale specification.

Primary diagnostic principle: Determine whether the discrepancy originates in authoritative measurements, analytical transformations, unit conversion, axis configuration, graphical encoding, or rendering before changing the figure.

Do not modify source measurements merely to make a chart appear correct.

2. Classify the failure

Table 1. Common axis-scale and unit defects
Symptom Potential cause First diagnostic action
Magnitude off by a fixed factor Incorrect conversion factor or unit prefix Compare source and display units
Constant offset in values Incorrect affine conversion Inspect scale and offset parameters
Missing negative observations Axis limits, filtering, or invalid logarithmic transformation Compare source minimum with axis domain
Unexpected missing values NaN/Inf handling, log-domain rejection, or clipping Inspect data-validation and renderer warnings
Exaggerated difference between bars Truncated baseline Compare displayed lengths with actual magnitudes
Uncertainty interval partially invisible Axis bounds exclude an interval endpoint Check the complete interval extent
Incorrect unit label Display metadata not updated after conversion Compare conversion configuration and axis label
Inconsistent multi-panel comparisons Independent auto-ranging or inconsistent normalization Inspect each panel’s limits and scales
Irregular temporal spacing disappears Timestamp interpreted as category Verify coordinate type and actual intervals
Geographic distortion Wrong projection, CRS, or aspect ratio Inspect coordinate metadata
Preview and export disagree Renderer-state mismatch, stale cache, or export behavior Reconcile both configurations and output artifacts

These are hypotheses to investigate, not proof of a particular software defect. Confirm the root cause using numerical and runtime evidence.

3. Preserve the original evidence

Before correcting a figure, capture the state in which the discrepancy appeared.

Retain:

  • Figure identifier and revision.
  • Authoritative dataset identifier and immutable version.
  • Source checksum and provenance.
  • Original numerical values and units.
  • Converted values and conversion parameters.
  • Sign convention and zero reference.
  • Uncertainty definition and original interval bounds.
  • Scale type, axis limits, tick format, and direction.
  • Filtering, clipping, sorting, and missing-value policies.
  • Renderer name, version, and configuration.
  • Original image, document, or interactive-state export.
  • Sanitized errors, warnings, and relevant screenshots.
  • Research publications or decisions depending on the figure.

Preserve the original source and affected figure revision. Work on a copy, and assign any corrected figure a new identifiable revision.

4. Diagnose in the correct order

  1. Identify the intended scientific quantity. Determine the variable, physical dimensions, observation unit, and relevant sign convention.
  2. Verify the authoritative source. Check source identity, revision, checksum, schema, and missing-value policy.
  3. Inspect unit conversion. Recalculate factors and offsets independently.
  4. Check analytical transformations. Determine whether filtering, aggregation, normalization, or interpolation changed the values.
  5. Inspect the axis specification. Verify scale type, bounds, direction, and expected zero reference.
  6. Test the plotted domain. Identify clipped values and invalid logarithmic inputs.
  7. Check uncertainty. Verify converted uncertainty and whether complete intervals are visible.
  8. Compare renderer output. Inspect plotted coordinates, ticks, labels, and exported artifacts.
  9. Evaluate scientific interpretation. Compare the figure with a numerical table and an alternative representation.
  10. Document the resolution. Preserve the correction, tests, and publication-impact decision.

The first failing boundary should be investigated before changing downstream settings. An incorrect source-unit definition cannot be repaired reliably through cosmetic axis relabeling.

5. Diagnose unit-conversion errors

5.1 Multiplicative conversions

For a conversion:

y = a*x

verify that a has the correct physical meaning and direction.

For example:

1000 grams = 1 kilogram

kg = g / 1000

An implementation using kg = g * 1000 produces an error by a factor of one million relative to the correct converted value.

5.2 Affine conversions

For conversions involving an offset:

y = a*x + b

inspect both a and b.

For Celsius to kelvin:

K = °C + 273.15

An omitted offset will produce incorrect absolute temperatures even when the shape of a plotted trend remains unchanged.

5.3 Carbon and carbon dioxide

Scientific graphics should distinguish carbon mass from carbon dioxide mass.

Using conventional molar masses:

t CO2 ≈ t C * (44 / 12)

The conversion does not, by itself, demonstrate verified carbon removal, additionality, permanence, or the validity of a carbon-accounting result.

5.4 Rates and totals

A total quantity cannot be converted into a rate without the relevant denominator or interval.

For example:

tonnes CO2

tonnes CO2 per hectare

tonnes CO2 per hectare per year

These are distinct quantities.

When results differ unexpectedly, inspect whether area, time, dry mass, concentration basis, or another denominator was lost or duplicated.

6. Diagnose misleading baselines

For bars encoding nonnegative magnitude, visual length is commonly interpreted relative to zero.

Consider two synthetic measurements:

A = 10
B = 12

Actual ratio:
B / A = 1.2

With a baseline of 9:

Visible A length = 10 - 9 = 1
Visible B length = 12 - 9 = 3

Visible length ratio = 3

The ratio of apparent lengths is 3 even though the actual magnitudes differ by only 20%.

Recovery: For an ordinary nonnegative magnitude-bar chart, use a zero baseline unless a specialized and clearly explained encoding justifies otherwise. For close-value comparisons, a point chart with clearly labeled axes may be preferable.

Do not apply a universal zero-baseline requirement to every chart. Line and scatter plots encode position rather than bar length, so truncated axes may be justified when the range and context are disclosed.

7. Diagnose missing positive, negative, or zero values

Signed scientific quantities require explicit treatment of their direction and zero reference.

Consider:

Source:
-4, -2, 0, 3, 5

Displayed axis:
0 to 6

The negative observations are outside the visible plotting range.

Check whether they were:

  • Clipped by axis limits.
  • Removed by a data filter.
  • Converted incorrectly.
  • Rejected by the renderer.
  • Misclassified as missing.
  • Suppressed by a logarithmic transformation.

Where sign is meaningful, preserve the zero reference and explain the positive and negative directions.

For net carbon fluxes, do not assume a universal sign convention. The measurement protocol must define whether positive indicates release, uptake, or another direction.

8. Diagnose invalid logarithmic scales

For a conventional logarithm:

z = log_b(x)

the real-valued domain requires:

x > 0
b > 0
b != 1

Ordinary logarithmic axes cannot directly represent zero or negative measurements.

Common failures include:

  • Automatically dropping nonpositive observations.
  • Displaying missing points without explanation.
  • Using nonpositive axis limits.
  • Mislabeling logarithmically transformed values.
  • Applying a logarithm twice.
  • Using an arbitrary positive offset to force data into the domain.

Check whether the data themselves were transformed or whether only the renderer’s axis scale changed.

For signed data spanning several orders of magnitude, a symmetric logarithmic transformation may be considered, but its threshold and interpretation must be documented.

Do not silently change invalid values into small positive numbers to make the graphic render.

9. Diagnose uncertainty conversion and clipping

An uncertainty interval can be numerically correct yet partially invisible if the axis limits exclude one of its bounds.

Suppose:

Measurement:
1000 ± 200 grams

Converted:
1.0 ± 0.2 kilograms

Interval:
[0.8, 1.2] kg

An axis ending at 1.0 kg would clip the upper interval bound.

For an affine conversion with exact constants:

y = a*x + b

Standard uncertainty:
u_y = |a| * u_x

For interval endpoints under a monotonic decreasing conversion, the transformed endpoint order must be corrected.

Investigate whether the figure displays standard deviation, standard error, confidence intervals, credible intervals, prediction intervals, or another form of uncertainty.

Do not treat an error bar as validated merely because it is symmetric around a plotted value.

10. Reproduce a defect using synthetic data

Use a small fixture containing both signed and nonnegative quantities so that domain errors are easy to isolate.

Table 2. Synthetic diagnostic fixture
Record Mass (g) Mass (kg) Deviation (synthetic units)
R01 500 0.5 -4
R02 1000 1.0 -2
R03 2000 2.0 0
R04 4000 4.0 3
R05 8000 8.0 5

Expected properties:

mass_kg = mass_g / 1000

All mass values are positive.

Deviations include negative, zero,
and positive observations.

Ordinary log mass axis: permitted.

Ordinary log deviation axis: invalid.

These values are synthetic and must not be presented as empirical measurements.

11. Implement a reusable diagnostic module

11.1 Prepare the environment

mkdir axis-troubleshooting
cd axis-troubleshooting

python3 -m venv .venv
source .venv/bin/activate

python -m pip install numpy matplotlib pytest

python --version
python -m pip freeze > requirements-lock.txt

11.2 Create the module

Save as axis_diagnostics.py.

from dataclasses import dataclass
import numpy as np


@dataclass(frozen=True)
class AxisSpec:
    scale: str
    lower: float
    upper: float
    mark_type: str
    unit: str


def convert_grams_to_kg(values):
    values = np.asarray(values, dtype=float)

    if not np.isfinite(values).all():
        raise ValueError("Invalid source values")

    return values / 1000.0


def convert_affine(
    value,
    uncertainty,
    factor,
    offset=0.0
):
    parameters = np.asarray(
        [value, uncertainty, factor, offset],
        dtype=float
    )

    if not np.isfinite(parameters).all():
        raise ValueError(
            "Invalid conversion parameters"
        )

    if uncertainty < 0:
        raise ValueError("Negative uncertainty")

    return (
        factor * value + offset,
        abs(factor) * uncertainty
    )


def inspect_axis(values, spec):
    data = np.asarray(values, dtype=float)

    if data.ndim != 1 or data.size == 0:
        raise ValueError("Invalid source shape")

    if not np.isfinite(data).all():
        raise ValueError("Nonfinite source values")

    if spec.scale not in ("linear", "log"):
        raise ValueError("Unsupported scale")

    if spec.mark_type not in (
        "point", "line", "bar"
    ):
        raise ValueError("Unsupported mark")

    if not spec.unit.strip():
        raise ValueError("Missing unit")

    if not (
        np.isfinite(spec.lower)
        and np.isfinite(spec.upper)
        and spec.lower < spec.upper
    ):
        raise ValueError("Invalid limits")

    issues = []

    if spec.scale == "log":
        if spec.lower <= 0:
            issues.append("INVALID_LOG_LIMIT")

        if np.any(data <= 0):
            issues.append("NONPOSITIVE_LOG_DATA")

    if np.any(
        (data < spec.lower)
        | (data > spec.upper)
    ):
        issues.append("DATA_CLIPPING")

    if spec.mark_type == "bar":
        if spec.scale != "linear":
            issues.append(
                "UNSUPPORTED_LOG_MAGNITUDE_BAR"
            )
        elif not (
            spec.lower <= 0 <= spec.upper
        ):
            issues.append(
                "BAR_ZERO_BASELINE_MISSING"
            )

    return {
        "valid": len(issues) == 0,
        "issues": issues,
        "source_min": float(data.min()),
        "source_max": float(data.max()),
        "axis_lower": spec.lower,
        "axis_upper": spec.upper,
        "scale": spec.scale,
        "unit": spec.unit
    }


def inspect_interval(lower, upper, spec):
    bounds = np.array(
        [lower, upper],
        dtype=float
    )

    if not np.isfinite(bounds).all():
        raise ValueError("Invalid interval")

    if lower > upper:
        raise ValueError(
            "Reversed interval"
        )

    return inspect_axis(bounds, spec)


def example_fixture():
    return {
        "records": (
            "R01", "R02", "R03",
            "R04", "R05"
        ),
        "mass_g": np.array(
            [500., 1000., 2000., 4000., 8000.]
        ),
        "deviation": np.array(
            [-4., -2., 0., 3., 5.]
        )
    }

The module returns structured diagnostics rather than silently adjusting invalid limits or measurements.

Its baseline rule is a conservative contract for magnitude bars. The module does not implement a general-purpose unit registry, dimensional analysis system, spatial transformation, or scientific chart-selection engine.

12. Generate defective and corrected figures

Save the following as run_axis_diagnostics.py.

from pathlib import Path
import hashlib
import json

import matplotlib
matplotlib.use("Agg")

import matplotlib.pyplot as plt
import numpy as np

from axis_diagnostics import (
    AxisSpec,
    convert_grams_to_kg,
    example_fixture,
    inspect_axis
)


OUTPUT = Path("diagnostic-output")
OUTPUT.mkdir(exist_ok=True)


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()


def render(values, spec, filename):
    fig, ax = plt.subplots(
        figsize=(7, 4.5),
        dpi=160
    )

    x = np.arange(len(values))

    ax.scatter(x, values, s=55)

    ax.set_xticks(x)
    ax.set_xlabel("Synthetic record index")

    ax.set_yscale(spec.scale)
    ax.set_ylim(spec.lower, spec.upper)

    ax.set_ylabel(
        f"Value ({spec.unit})"
    )

    if (
        spec.lower <= 0 <= spec.upper
        and spec.scale == "linear"
    ):
        ax.axhline(
            0,
            linestyle="--",
            linewidth=1
        )

    fig.tight_layout()

    path = OUTPUT / filename
    fig.savefig(path)
    plt.close(fig)

    return path


def main():
    fixture = example_fixture()

    mass_kg = convert_grams_to_kg(
        fixture["mass_g"]
    )

    deviation = fixture["deviation"]

    # Intentionally defective:
    # Negative observations are clipped.
    defective = AxisSpec(
        scale="linear",
        lower=0,
        upper=6,
        mark_type="point",
        unit="synthetic units"
    )

    # Corrected scale includes all observations.
    corrected = AxisSpec(
        scale="linear",
        lower=-6,
        upper=6,
        mark_type="point",
        unit="synthetic units"
    )

    # Valid log scale for positive mass.
    mass_log = AxisSpec(
        scale="log",
        lower=0.1,
        upper=10,
        mark_type="point",
        unit="kg"
    )

    defect_result = inspect_axis(
        deviation,
        defective
    )

    correction_result = inspect_axis(
        deviation,
        corrected
    )

    mass_result = inspect_axis(
        mass_kg,
        mass_log
    )

    assert "DATA_CLIPPING" in (
        defect_result["issues"]
    )

    assert correction_result["valid"]
    assert mass_result["valid"]

    original_path = render(
        deviation,
        defective,
        "defective-signed-axis.png"
    )

    corrected_path = render(
        deviation,
        corrected,
        "corrected-signed-axis.png"
    )

    log_path = render(
        mass_kg,
        mass_log,
        "validated-log-mass.png"
    )

    report = {
        "fixture": "synthetic_axis_diagnostics",
        "defect": defect_result,
        "correction": correction_result,
        "positive_log_axis": mass_result,
        "artifacts": {
            "original": sha256_file(original_path),
            "corrected": sha256_file(corrected_path),
            "log_mass": sha256_file(log_path)
        },
        "numerical_checks": "pass",
        "visual_review": "not_tested",
        "accessibility": "not_tested",
        "scientific_review": "not_tested"
    }

    (OUTPUT / "diagnostic-report.json").write_text(
        json.dumps(report, indent=2),
        encoding="utf-8"
    )

    print(
        "Original axis:",
        defect_result["issues"]
    )

    print(
        "Corrected axis:",
        correction_result["valid"]
    )

    print(
        "Log mass axis:",
        mass_result["valid"]
    )


if __name__ == "__main__":
    main()

12.1 Execute the example

python run_axis_diagnostics.py

Expected output:

Original axis: ['DATA_CLIPPING']
Corrected axis: True
Log mass axis: True

Generated evidence:

diagnostic-output/
  defective-signed-axis.png
  corrected-signed-axis.png
  validated-log-mass.png
  diagnostic-report.json

The first figure intentionally hides the negative observations through an inappropriate axis range. The corrected figure makes the signed dataset visible without changing the source values.

The third figure demonstrates a valid ordinary logarithmic domain for the positive mass measurements.

Actual visual appearance and accessible interpretation still require inspection.

13. Implement automated regression tests

After identifying a defect, add tests that reject the original failure and related invalid configurations.

Save as test_axis_diagnostics.py.

import numpy as np
import pytest

from axis_diagnostics import (
    AxisSpec,
    convert_grams_to_kg,
    convert_affine,
    inspect_axis,
    inspect_interval
)


def point_spec(
    scale="linear",
    lower=-6,
    upper=6
):
    return AxisSpec(
        scale,
        lower,
        upper,
        "point",
        "synthetic units"
    )


def test_mass_conversion():
    result = convert_grams_to_kg(
        [500., 1000., 2000.]
    )

    np.testing.assert_allclose(
        result,
        [0.5, 1., 2.],
        rtol=0,
        atol=1e-12
    )


def test_signed_values_visible():
    result = inspect_axis(
        [-4., -2., 0., 3., 5.],
        point_spec()
    )

    assert result["valid"]


def test_negative_clipping_detected():
    result = inspect_axis(
        [-4., -2., 0., 3., 5.],
        point_spec(lower=0, upper=6)
    )

    assert "DATA_CLIPPING" in result["issues"]


def test_invalid_log_domain_detected():
    result = inspect_axis(
        [-1., 0., 10.],
        point_spec(
            scale="log",
            lower=0.1,
            upper=20
        )
    )

    assert "NONPOSITIVE_LOG_DATA" in (
        result["issues"]
    )


def test_valid_log_domain():
    result = inspect_axis(
        [1., 10., 100.],
        point_spec(
            scale="log",
            lower=0.1,
            upper=1000
        )
    )

    assert result["valid"]


def test_nonpositive_log_limit():
    result = inspect_axis(
        [1., 2., 3.],
        point_spec(
            scale="log",
            lower=0,
            upper=10
        )
    )

    assert "INVALID_LOG_LIMIT" in (
        result["issues"]
    )


def test_bar_baseline_detected():
    spec = AxisSpec(
        "linear", 9, 15,
        "bar", "kg"
    )

    result = inspect_axis(
        [10., 12.],
        spec
    )

    assert "BAR_ZERO_BASELINE_MISSING" in (
        result["issues"]
    )


def test_valid_zero_baseline_bar():
    spec = AxisSpec(
        "linear", 0, 15,
        "bar", "kg"
    )

    assert inspect_axis(
        [10., 12.],
        spec
    )["valid"]


def test_uncertainty_conversion():
    value, uncertainty = convert_affine(
        1000., 20., 0.001
    )

    assert value == pytest.approx(1.0)
    assert uncertainty == pytest.approx(0.02)


def test_temperature_offset_conversion():
    value, uncertainty = convert_affine(
        0., 0.5, 1.0, 273.15
    )

    assert value == pytest.approx(273.15)
    assert uncertainty == pytest.approx(0.5)


def test_clipped_interval_detected():
    result = inspect_interval(
        0.8,
        1.2,
        AxisSpec(
            "linear", 0, 1,
            "point", "kg"
        )
    )

    assert "DATA_CLIPPING" in result["issues"]


def test_reversed_interval_rejected():
    with pytest.raises(ValueError):
        inspect_interval(
            2.,
            1.,
            point_spec()
        )


@pytest.mark.parametrize(
    "invalid",
    [np.nan, np.inf, -np.inf]
)
def test_nonfinite_source_rejected(invalid):
    with pytest.raises(ValueError):
        inspect_axis(
            [1., invalid],
            point_spec()
        )


def test_invalid_limits_rejected():
    with pytest.raises(ValueError):
        inspect_axis(
            [1., 2.],
            point_spec(
                lower=5,
                upper=0
            )
        )


def test_empty_source_rejected():
    with pytest.raises(ValueError):
        inspect_axis(
            [],
            point_spec()
        )

Execute:

python -m pytest -v test_axis_diagnostics.py

The reference suite defines seventeen test cases after expanding the parameterized nonfinite-input test.

They cover unit conversions, uncertainty, clipping, signed values, logarithmic domains, zero baselines, invalid limits, and empty data.

The tests are expected to pass under a compatible environment; they are not evidence of execution against Sustainable Catalyst.

14. Diagnose renderer and export discrepancies

If the numerical values and axis specification are correct but the exported graphic is not, investigate the renderer.

Potential causes include:

  • Automatic scale selection.
  • Clipping during rendering.
  • Tick-label formatting or scientific notation.
  • Axis inversion.
  • Unintended category sorting.
  • Font substitutions.
  • Different interactive and static export settings.
  • Cached figure revisions.
  • Incomplete serialization of scale configuration.

Verify the actual graphical object properties where the renderer permits inspection.

For Matplotlib:

assert ax.get_yscale() == "linear"

lower, upper = ax.get_ylim()

assert lower == -6
assert upper == 6

These checks establish the configured axis state. They do not establish pixel-level correspondence, appropriate unit labeling, or scientific interpretability.

Compare the exported figure with an independently calculated numerical table and, when necessary, a second validated rendering route.

15. Diagnose temporal and geospatial axis errors

15.1 Temporal axes

Unexpected time-series distortion may result from:

  • Incorrect parsing of timestamp fields.
  • Time-zone conversion errors.
  • Confusion between observation time and processing time.
  • Incorrect aggregation periods.
  • Category spacing used instead of actual elapsed time.
  • Missing observations represented as continuous measurements.

Preserve the authoritative time reference and verify the actual differences between consecutive observations.

15.2 Geospatial axes

Spatial plots require correct coordinate reference systems and projection parameters.

Check:

  • Latitude and longitude versus projected coordinates.
  • Angular units versus linear distance units.
  • Projection and datum.
  • Axis ordering.
  • Aspect ratio.
  • Spatial extent and clipping.
  • Transformation parameters and resolution.

Correct numerical coordinates can still produce misleading distance or area comparisons when the map projection is unsuitable.

16. Controlled correction and recovery

Once the root cause is identified, apply a controlled correction.

  1. Preserve the original. Retain the source dataset, axis specification, rendered artifact, and diagnostics.
  2. Confirm the authoritative quantity. Establish the original units, dimensions, reference zero, and sign convention.
  3. Recalculate independently. Verify conversions, transformations, and uncertainty.
  4. Correct the responsible layer. Fix the conversion logic, analytical parameters, scale configuration, or renderer adapter as appropriate.
  5. Validate the full domain. Check positive, negative, zero, missing, and boundary values.
  6. Inspect corrected graphics. Confirm limits, ticks, labels, intervals, and figure geometry.
  7. Run regression tests. Ensure the original defect would be detected in future executions.
  8. Create a new figure revision. Retain the corrected configuration, numerical results, and artifact hashes.
  9. Review publication impact. Determine whether previously distributed figures or claims require correction.
  10. Record acceptance. Document actual reviewer decisions and unresolved limitations.

A corrected figure should not silently replace an accepted publication artifact when its scientific interpretation or evidence changes.

17. Accessibility and interpretation review

A corrected axis must communicate its numerical meaning clearly to all intended readers.

Review:

  • Variable names and measurement units.
  • Logarithmic or other transformation descriptions.
  • Positive and negative direction.
  • Readable tick labels and precision.
  • Visible uncertainty intervals.
  • Accessible numerical tables.
  • Non-color-only distinctions.
  • Captions that explain important axis choices.
  • Keyboard accessibility for interactive controls where applicable.

WCAG 2.2 and W3C guidance for complex images provide relevant requirements for accessible graphics and numerical alternatives (W3C, 2024; W3C WAI, n.d.).

Accessible numerical content should use the same validated units and transformations as the graphical representation.

18. Technical acceptance matrix

Table 3. Axis-scale troubleshooting acceptance criteria
Criterion Pass condition Evidence
Source integrity Correct authoritative dataset and revision identified Source reference and checksum
Variable semantics Scientific quantity and reference meaning documented Metadata review
Unit compatibility Source and display units are dimensionally compatible Unit validation
Conversion correctness Factors and offsets reproduce expected values Independent calculations
Uncertainty conversion Uncertainty and interval bounds remain correct Statistical tests
Scale domain All displayed values satisfy the transformation domain Domain tests
Sign preservation Positive, negative, and zero values are correctly represented Numerical and visual inspection
Baseline integrity Baseline matches the graphical mark and intended comparison Chart review
Clipping disclosure Relevant observations and uncertainty are visible or exclusions explained Range checks
Temporal reference Observation timing and aggregation are correctly represented Temporal validation
Spatial reference Coordinate units, order, and projection are appropriate Geospatial verification
Rendering Actual mark coordinates, limits, and labels match specifications Renderer inspection
Export Static or interactive artifact preserves intended axis semantics Export comparison
Accessibility Scientific quantities remain interpretable accessibly Accessibility review
Reproducibility Corrected result can be reconstructed Execution receipt
Scientific review Corrected representation supports the intended inference Independent assessment

Decision rule: Record each applicable criterion as Pass, Fail, Not Tested, or Not Applicable. A correction is not accepted simply because the revised figure looks more plausible.

19. Evidence package and correction receipt

Preserve:

  • Issue identifier and original figure revision.
  • Authoritative source identity, version, and checksum.
  • Original and corrected unit definitions.
  • Conversion formulas and numerical reconciliation.
  • Original and corrected axis specifications.
  • Original and corrected exported figures.
  • Relevant uncertainty calculations.
  • Actual renderer and dependency versions.
  • Executed test receipts and runtime inspection evidence.
  • Source and output hashes.
  • Accessibility findings.
  • Scientific reviewer, publication impact, and correction decision.

19.1 Illustrative correction manifest

{
  "schema_version": "example-1.0",
  "issue_id": "synthetic-axis-001",
  "figure_id": "signed-deviation-chart",
  "source_classification": "synthetic",
  "defect": "negative_values_clipped",
  "original_axis": {
    "scale": "linear",
    "limits": [0, 6]
  },
  "corrected_axis": {
    "scale": "linear",
    "limits": [-6, 6]
  },
  "source_values_changed": false,
  "validation": {
    "source_integrity": "not_tested",
    "unit_conversion": "not_tested",
    "sign_preservation": "not_tested",
    "range_integrity": "not_tested",
    "rendering": "not_tested",
    "accessibility": "not_tested",
    "scientific_review": "not_tested"
  },
  "publication_approval": "not_approved"
}

This is an illustrative documentation contract, not a deployed Sustainable Catalyst schema. Populate real acceptance states from actual evidence.

20. Sustainable Catalyst integration and source audit

Axis-scale troubleshooting may involve multiple Sustainable Catalyst applications. The following responsibilities are proposed rather than independently verified.

Table 4. Proposed cross-application responsibilities
Application Intended diagnostic responsibility
Library Verify authoritative source data, units, metadata, versions, and rights
Workbench Reproduce numerical transformations, unit conversions, and figures where implemented
Research Lab Review measurement assumptions, uncertainty, and scientific validity
Visualization & Graphing Inspect axis specifications, renderer mappings, and exported figures
Site Intelligence Check coordinate reference systems, spatial units, and map projections where supported
Decision Studio Verify unit and scale consistency in model comparisons where implemented
Workspace Track incident ownership, corrective actions, review, and acceptance
Research Identify affected published outputs and manage approved figure corrections

20.1 Source-audit requirements

Before certifying a Sustainable Catalyst axis correction, identify:

  • Owning repository and exact code revision.
  • Renderer engine and adapter version.
  • Source-variable and unit schemas.
  • Actual conversion and uncertainty-processing code.
  • Supported axis types and transformation parameters.
  • Clipping, sign, and zero-baseline behavior.
  • Source-to-mark mapping and cache behavior.
  • Rendered screenshots and exported artifacts.
  • Executed numerical, integration, and regression tests.
  • Actual scientific and publication-review evidence.
  • Known unsupported configurations.

The availability of a plotting engine or unit-conversion library does not establish end-to-end scientific validation within the platform.

21. Escalation criteria

Escalate for scientific, engineering, or publication review when:

  • Authoritative source units are unknown or inconsistent.
  • Converted values disagree with independent calculations.
  • Negative or zero observations were silently excluded.
  • A logarithmic transformation was applied outside its valid domain.
  • Axis limits materially exaggerate the intended comparison.
  • Uncertainty was converted incorrectly or clipped.
  • Temporal or spatial coordinates are inconsistent.
  • The renderer produces irreconcilable numerical or graphical results.
  • A published figure contains a material axis or unit defect.
  • The correction changes the scientific interpretation of the result.

Do not treat a material unit, sign, or scale error as a cosmetic issue. Preserve the original evidence and determine whether an approved correction is necessary.

22. Technical references

  1. Bureau International des Poids et Mesures (BIPM) (2019). The International System of Units (SI Brochure). 9th edition, with subsequent updates. Available at: BIPM SI Brochure.
  2. Thompson, A. and Taylor, B.N. (2008). Guide for the Use of the International System of Units (SI). NIST Special Publication 811. Available at: NIST publication page.
  3. Matplotlib Development Team (n.d.). Axis Scales. Available at: Matplotlib documentation.
  4. Matplotlib Development Team (n.d.). matplotlib.axes.Axes.set_yscale. Available at: Matplotlib API documentation.
  5. Vega-Lite Developers (n.d.). Scale. Available at: Vega-Lite documentation.
  6. 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.
  7. pytest Development Team (n.d.). pytest Documentation. Available at: https://docs.pytest.org/en/stable/.
  8. World Wide Web Consortium (W3C) (2024). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
  9. W3C Web Accessibility Initiative (n.d.). Complex Images. Available at: W3C WAI guidance.

23. Completion and verification record

Table 5. Required troubleshooting outcome record
Field Required record
Issue identifier Unique diagnostic reference
Affected figure Figure ID and revision
Source integrity Pass, Fail, or Not Tested
Unit compatibility Pass, Fail, or Not Tested
Conversion arithmetic Pass, Fail, or Not Tested
Sign preservation Pass, Fail, or Not Tested
Scale-domain validity Pass, Fail, or Not Tested
Baseline appropriateness Pass, Fail, or Not Tested
Clipping Pass, Fail, or Not Tested
Uncertainty Pass, Fail, or Not Tested
Temporal/spatial reference Pass, Fail, Not Tested, or Not Applicable
Rendering and export Pass, Fail, or Not Tested
Accessibility Pass, Fail, or Not Tested
Reproducibility Pass, Fail, or Not Tested
Scientific review Pass, Fail, or Not Tested
Root cause Confirmed explanation or unresolved hypothesis
Corrective action Documented correction and rationale
Reviewer Actual reviewer and date
Evidence artifacts Data, scripts, scale configurations, figures, logs, and test receipts
Outstanding limitations Unresolved scientific or implementation issues

Completion criterion: An axis-scale or unit defect is resolved when its cause has been established, authoritative measurements are preserved, conversions and transformations reconcile numerically, the corrected axis communicates sign and magnitude appropriately, and applicable rendering, accessibility, reproducibility, and scientific review requirements have passed.

Scientific limitation: Correcting units and axis scales improves numerical and graphical integrity but cannot independently repair biased sampling, incorrect measurements, invalid statistical assumptions, or unsupported causal claims.

Current implementation status: Troubleshooting methodology, deterministic synthetic fixture, defect reproduction, corrected visualizations, numerical checks, automated regression test definitions, and proposed acceptance criteria documented. No specific Sustainable Catalyst unit-validation service, axis renderer, or publication-correction integration is certified without actual source-code audit, runtime inspection, executed tests, and release acceptance evidence.

Scroll to Top