Skip to content
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

Change Area/Ribbon to generate Polygon patches and add clipping trick #2896

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Jul 11, 2022

Previously Area generated PolyCollection artists to match what ax.fill_between does, but I don't think it would be very common to need to extra speed you get with that for this type of mark, and the Polygon patch artist is easier to work with.

This PR also adds in (copies — blegh) the artist clipping and sticky edges previously applied to Bar marks (#2889).

Closes #2890

@codecov
Copy link

codecov bot commented Jul 11, 2022

Codecov Report

Merging #2896 (c5ad0a4) into master (3c8447f) will decrease coverage by 0.00%.
The diff coverage is 98.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2896      +/-   ##
==========================================
- Coverage   98.20%   98.20%   -0.01%     
==========================================
  Files          69       69              
  Lines       22561    22585      +24     
==========================================
+ Hits        22156    22179      +23     
- Misses        405      406       +1     
Impacted Files Coverage Δ
seaborn/_marks/area.py 96.25% <96.66%> (-0.37%) ⬇️
tests/_marks/test_area.py 100.00% <100.00%> (ø)

@mwaskom mwaskom merged commit ca9ba9c into master Jul 12, 2022
@mwaskom mwaskom deleted the area/clip branch July 12, 2022 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use extent clipping (and sticky edges) for Area mark
1 participant