Repository navigation
Smooth shape-mode contours, Fourier low-pass option, 300 dpi docs figures - #11
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plot_shape_modesandplot_representativesdraw each contour as a periodic cubic spline passing through its points (smooth=True;smooth=Falsedraws the polygon). Round line caps remove the seam where a closed contour starts and ends.vp.contours.lowpass_contour(contour, n_harmonics)keeps the firstn_harmonicsFourier harmonics.plot_shape_modes,plot_representativesandplot_summaryacceptn_harmonics(defaultNone, off) to remove pixel-level wiggle before drawing; ~8 works well on the example data. Only the drawing changes, not the model.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🤖 Generated with Claude Code