Skip to content

Smooth shape-mode contours, Fourier low-pass option, 300 dpi docs figures - #11

Merged
tengjuilin merged 2 commits into
mainfrom
plots-logo-docs
Oct 22, 2026
Merged

tengjuilin merged 2 commits into
mainfrom
plots-logo-docs

Conversation

@tengjuilin

Copy link
Copy Markdown
Owner

Summary

  • Smooth contours: plot_shape_modes and plot_representatives draw each contour as a periodic cubic spline passing through its points (smooth=True; smooth=False draws the polygon). Round line caps remove the seam where a closed contour starts and ends.
  • Low-pass option: new vp.contours.lowpass_contour(contour, n_harmonics) keeps the first n_harmonics Fourier harmonics. plot_shape_modes, plot_representatives and plot_summary accept n_harmonics (default None, off) to remove pixel-level wiggle before drawing; ~8 works well on the example data. Only the drawing changes, not the model.
  • 300 dpi docs figures: the docs notebook kernel renders figures as 300 dpi retina PNGs (2x pixel density).
  • Docs: plotting gallery compares None / 12 / 8 harmonics; API reference, agent page and changelog updated.

Test plan

  • uv run pytest (335 passed locally)
  • uv run ruff check . && uv run ruff format --check .
  • uv run sphinx-build -W --keep-going -b html docs docs/_build/html (exit 0); figures checked visually
  • GitHub Actions

🤖 Generated with Claude Code

tengjuilin and others added 2 commits October 22, 2026 13:26
- plot_shape_modes / plot_representatives draw a periodic cubic spline
  through each contour's points (smooth=True; smooth=False draws the polygon)
- Docs notebook kernel renders figures as 300 dpi retina PNGs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- vp.contours.lowpass_contour(contour, n_harmonics) keeps the first
  n_harmonics elliptic Fourier harmonics
- plot_shape_modes, plot_representatives, plot_summary take n_harmonics
  (default None) to remove pixel-level wiggle before drawing
- Round line caps so closed contours have no visible seam
- Plotting gallery shows None / 12 / 8 harmonics

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tengjuilin
tengjuilin merged commit 1490181 into main Oct 22, 2026
6 checks passed
@tengjuilin
tengjuilin deleted the plots-logo-docs branch October 22, 2026 20:38
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