feat(inset): add align_to="footer" target#1078
Merged
Merged
Conversation
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).
66ac186 to
0795dd7
Compare
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
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.
Add
align_to="footer"toinset_element, placing an inset (e.g. a logo or plot) in the plot's footer band; handy for branding inline with footer text.