Skip to content

[codex] Fix NEP parity tick alignment - #126

Merged
Tingliangstu merged 1 commit into
mainfrom
codex/fix-nep-virial-ticks
Jun 23, 2026
Merged

Tingliangstu merged 1 commit into
mainfrom
codex/fix-nep-virial-ticks

Conversation

@Tingliangstu

Copy link
Copy Markdown
Collaborator

Summary

Fixes NEP parity plot tick alignment so the x and y axes use the same tick positions when their limits are shared.

Root cause

The parity panels already used identical x/y limits, but Matplotlib selected ticks independently for each axis. In non-square panels such as subplot (d) in nep_train.png, that could produce different x-axis and y-axis tick labels despite equal numeric ranges.

Changes

  • Added shared parity-axis setup that applies identical limits and identical tick arrays to both axes.
  • Reused that setup for the compact training overview and the marginal parity plot.
  • Added regression assertions that x/y ticks match on non-square parity axes.

Validation

  • python -m pytest tests\test_training_nep.py
  • python -m pytest

@Tingliangstu
Tingliangstu marked this pull request as ready for review June 23, 2026 12:49
@Tingliangstu
Tingliangstu merged commit a044b2f into main Jun 23, 2026
2 checks passed
@Tingliangstu
Tingliangstu deleted the codex/fix-nep-virial-ticks branch October 20, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant