Skip to content

feat(inset): add align_to="footer" target#1078

Merged
has2k1 merged 6 commits into
mainfrom
feat-footer-inset
Jun 15, 2026
Merged

feat(inset): add align_to="footer" target#1078
has2k1 merged 6 commits into
mainfrom
feat-footer-inset

Conversation

@has2k1

@has2k1 has2k1 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Add align_to="footer" to inset_element, placing an inset (e.g. a logo or plot) in the plot's footer band; handy for branding inline with footer text.

has2k1 added 6 commits June 15, 2026 15:59
Pre-resize the source to the inset's exact device-pixel footprint with
PIL and render it pixel-for-pixel (interpolation='none'), instead of
letting matplotlib resample the full-resolution image. Downscale with
LANCZOS to antialias (matplotlib's resampler aliases on large
reductions); enlarge with NEAREST to stay crisp (smooth filters look
hazy and ring on hard edges).
@has2k1 has2k1 force-pushed the feat-footer-inset branch from 66ac186 to 0795dd7 Compare June 15, 2026 19:22
@has2k1 has2k1 merged commit 0795dd7 into main Jun 15, 2026
11 checks passed
@has2k1 has2k1 deleted the feat-footer-inset branch June 15, 2026 19:24
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.10%. Comparing base (d7b9533) to head (0795dd7).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
plotnine/composition/_inset_image.py 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1078      +/-   ##
==========================================
+ Coverage   87.07%   87.10%   +0.02%     
==========================================
  Files         208      208              
  Lines       14341    14373      +32     
  Branches     1789     1794       +5     
==========================================
+ Hits        12488    12520      +32     
  Misses       1286     1286              
  Partials      567      567              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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