-
-
Notifications
You must be signed in to change notification settings - Fork 8k
[MNT]: #28701 separate the generation of polygon vertices in fill_between to enable resampling #28702
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
tacaswell
merged 84 commits into
matplotlib:main
from
cmp0xff:feature/cmp0xff/28701-separate-generating-vertices
Oct 11, 2024
Merged
[MNT]: #28701 separate the generation of polygon vertices in fill_between to enable resampling #28702
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
5f23388
feat: #28701 separate the generation of polygon vertices
cmp0xff 045aed0
chore(pre-commit): #28701 fix
cmp0xff 6692213
chore(pytest): #28701 fix
cmp0xff 5204fee
feat: #28701 attempt to fix pytest
cmp0xff 2d6f430
feat(comment): #28701 attempt to make a subclass instead of exposing …
cmp0xff 3a80bd1
chore(typing): #28701
cmp0xff 55c7efb
fix(duplication): #28701 remove
cmp0xff 6dc5b5d
fix(pytest): #28701 attempt to fix pytest by normalising kwargs
cmp0xff 70e9901
chore(typing): #28701 attempt to fix ci
cmp0xff 9796a7e
fix(comment): #28701 naming @timhoffm https://github.com/matplotlib/m…
cmp0xff 557a882
fix(comment): #28701 interface @cmp0xff https://github.com/matplotlib…
cmp0xff 1dd26dc
feat(example): #27801 @jklymak https://github.com/matplotlib/matplotl…
cmp0xff 3485cfe
feat(test): #27801 unit test for set_data @jklymak https://github.com…
cmp0xff fde3583
chore(pytest): #27801 `python tools/boilerplate.py`
cmp0xff 24f0bb3
chore(import): #27801 fix
cmp0xff 5aefddd
feat: #27801 simplify the interface
cmp0xff 603704b
feat(test): #27801 increase test coverage
cmp0xff 856bc18
chore(mypy): #27801
cmp0xff a140c07
chore: #27801 reduce duplicated memory usage
cmp0xff 130a631
fix(comment): #27801 @cmp0xff https://github.com/matplotlib/matplotli…
cmp0xff c29aef2
Merge branch 'main' into feature/cmp0xff/28701-separate-generating-ve…
cmp0xff d88315f
Merge branch 'main' into feature/cmp0xff/28701-separate-generating-ve…
cmp0xff e112d5a
fix(comment): #28702 the attribute `self.axes` should always exist ht…
cmp0xff ccd52a1
fix(comment): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff c72ad39
fix(comment): #28701 py39 compatibility @timhoffm https://github.com/…
cmp0xff 53fd059
fix(comment): #28701 naming @timhoffm https://github.com/matplotlib/m…
cmp0xff fae8e90
chore(flake8): #28701 fix E501
cmp0xff 38cd7b9
fix(comment): #28701 remove fixtures @timhoffm https://github.com/mat…
cmp0xff b716ffc
fix(stub): #28701 propagate 53fd059074e976f534934afb3ca9796dea0a9d3c
cmp0xff db3af64
fix(comment): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff d4e05ce
fix(comment): #28701 use decorator @timhoffm https://github.com/matpl…
cmp0xff a663a3d
chore(typo): #28701 fixes
cmp0xff bea3e83
doc(notes): #28701 directive and release notes
cmp0xff 320877e
fix(naming): #28701 propagate 53fd059074e976f534934afb3ca9796dea0a9d3c
cmp0xff cb942c1
doc(axes): #28701 fix
cmp0xff a24c874
fix(sphinx): #28701 py:class reference target not found
cmp0xff 50552b5
fix(comment): #28701 @timhoffm simplify the logic https://github.com/…
cmp0xff 573b54d
fix(comment): #28701 remove default value @timhoffm https://github.co…
cmp0xff 13cad5d
fix(comment): #28701 further simplify the test @timhoffm https://gith…
cmp0xff 187dd6e
fix(comment): #28701 default value, kw-only, typing @timhoffm https:/…
cmp0xff cf44eb7
fix(comment): #28701 make FillBetweenPolyCollection._update_axes_data…
cmp0xff f2abc04
fix(comment): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff 55347c3
fix(comment): #28701 make the example intuitive @timhoffm https://git…
cmp0xff 7fd8b52
fix(comment): #28701 "what's new" is sufficient @timhoffm https://git…
cmp0xff fd9072c
chore(flake8): #28701 fix E302 expected 2 blank lines, found 1
cmp0xff 1b11a17
fix(comment): #28701 simplify test @timhoffm https://github.com/matpl…
cmp0xff 63723c2
refactor: #28701 further simplify the code
cmp0xff 8ba8478
chore(naming): #28701 propagate 320877e034a33859d9eb5a1db068139d192e8f3a
cmp0xff 5c0bd7e
doc: #28701
cmp0xff bc145e5
chore(naming): #28701
cmp0xff e394cfa
Merge branch 'main' into feature/cmp0xff/28701-separate-generating-ve…
cmp0xff e34e610
fix: #28701 attempt to fix pytest
cmp0xff ef31e8d
fix(comment): #28701 @anntzer spelling https://github.com/matplotlib/…
cmp0xff 84c5e55
feat: #28701 remove the argument axes @timhoffm
cmp0xff ce0fdbb
refactor: #28701 attempt to simplify make_verts_per_region
cmp0xff 1234ac0
chore: #28701 spacing
cmp0xff 9f2dfe4
Merge branch 'main' into feature/cmp0xff/28701-separate-generating-ve…
cmp0xff ed2636c
fix: #28701 attempt to fix pytest
cmp0xff 964be6c
feat: #28701 recover the original low memory trace
cmp0xff 4dd9b8f
doc: #28701 attempt to fix
cmp0xff 0835298
fix: #28701 attempt to fix pytest
cmp0xff 7806e46
refactor: #28701 make semantic function from code blocks
cmp0xff 8c056a9
feat: #28701 @timhoffm drop interpolate, step and kwargs in set_data …
cmp0xff ade691d
doc: #28701 @timhoffm make the docstring more informative to the end …
cmp0xff 79c4d49
fix(comment): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff 428ef2f
doc: #28701 @timhoffm https://github.com/matplotlib/matplotlib/pull/2…
cmp0xff ea15827
fix(comment): #28701 use bbox and its minpos to set data limits @timh…
cmp0xff 8990b5f
feat(comment): #28701 get_datalim for FillBetweenPolyCollection @timh…
cmp0xff 2e9463f
fix: #28701 remove internal property from typing
cmp0xff 614b301
doc: #28701 formating @timhoffm https://github.com/matplotlib/matplot…
cmp0xff 1f03a14
Merge branch 'matplotlib:main' into feature/cmp0xff/28701-separate-ge…
cmp0xff cba918c
fix(comment): #28701 @cmp0xff https://github.com/matplotlib/matplotli…
cmp0xff 6920c0c
doc: #28701 get_data_mask @timhoffm https://github.com/matplotlib/mat…
cmp0xff a697987
fix(commment): #28701 naming @timhoffm https://github.com/matplotlib/…
cmp0xff 3447f78
fix(comment): #28701 @cmp0xff https://github.com/matplotlib/matplotli…
cmp0xff 1bd670a
fix(comment): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff a75e02b
doc(example): #28701 @timhoffm https://github.com/matplotlib/matplotl…
cmp0xff 8db3849
Merge branch 'matplotlib:main' into feature/cmp0xff/28701-separate-ge…
cmp0xff b0bc7f7
doc: #28701 attempt to fix the doc build
cmp0xff e34a98e
doc: #28701 attempt to fix the doc build
cmp0xff c547a8a
doc: #28701 attempt to fix the doc build
cmp0xff 505811f
chore: #28701 restore b0bc7f72c6bba226b99aa64155d994cb1cd8cc1a
cmp0xff 34ead11
Merge branch 'matplotlib:main' into feature/cmp0xff/28701-separate-ge…
cmp0xff 23aaca3
Merge branch 'matplotlib:main' into feature/cmp0xff/28701-separate-ge…
cmp0xff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
``FillBetweenPolyCollection`` | ||
----------------------------- | ||
|
||
The new class :class:`matplotlib.collections.FillBetweenPolyCollection` provides | ||
the ``set_data`` method, enabling e.g. resampling | ||
(:file:`galleries/event_handling/resample.html`). | ||
:func:`matplotlib.axes.Axes.fill_between` and | ||
:func:`matplotlib.axes.Axes.fill_betweenx` now return this new class. | ||
|
||
.. code-block:: python | ||
|
||
import numpy as np | ||
from matplotlib import pyplot as plt | ||
|
||
t = np.linspace(0, 1) | ||
|
||
fig, ax = plt.subplots() | ||
coll = ax.fill_between(t, -t**2, t**2) | ||
fig.savefig("before.png") | ||
|
||
coll.set_data(t, -t**4, t**4) | ||
fig.savefig("after.png") |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.