Skip to content

Donut-MultiPolygons are now correctly rendered again #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 28, 2024

Conversation

timtreis
Copy link
Member

@timtreis timtreis commented Aug 28, 2024

The extent of the circle is not "perfect", but that's because back then when we first made the plot, we were still doing the extent-calculations "in-house". Now they've been ported upstream so we have no control over them anymore.
image

(also deleting two unused functions)

@timtreis timtreis linked an issue Aug 28, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 8 lines in your changes missing coverage. Please review.

Project coverage is 84.60%. Comparing base (bd285f6) to head (90fa5ce).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/spatialdata_plot/pl/utils.py 77.77% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
+ Coverage   79.26%   84.60%   +5.33%     
==========================================
  Files          11        8       -3     
  Lines        1799     1559     -240     
==========================================
- Hits         1426     1319     -107     
+ Misses        373      240     -133     
Files with missing lines Coverage Δ
src/spatialdata_plot/pl/utils.py 77.63% <77.77%> (+9.58%) ⬆️

... and 4 files with indirect coverage changes

@timtreis timtreis changed the title Donot-MultiPolygons are now correctly rendered again Donut-MultiPolygons are now correctly rendered again Aug 28, 2024
Comment on lines 13 to 15
import matplotlib.patches
import matplotlib.patches as mpatches
import matplotlib.patches as mplp
Copy link
Collaborator

@Sonja-Stockhaus Sonja-Stockhaus Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why we need all 3 lines? @timtreis

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No 🥸

@timtreis timtreis merged commit c6973bd into main Aug 28, 2024
5 checks passed
@timtreis timtreis deleted the bugfix/333-multipolygons-with-holes-are-broken branch August 28, 2024 20:08
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.

MultiPolygons with holes are broken
3 participants