8000 Update lib/matplotlib/stackplot.py by thedatacurious · Pull Request #29853 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Update lib/matplotlib/stackplot.py #29853

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 7 commits into from
Apr 7, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions lib/matplotlib/stackplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@

Parameters
----------
x : (N,) array-like
x : (N, ) array-like

y : (M, N) array-like
y : (M, N) array-like or pandas.DataFrame
The data is assumed to be unstacked. Each of the following
calls is legal::

Check failure on line 31 in lib/matplotlib/stackplot.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] reported by reviewdog 🐶 W293 blank line contains whitespace Raw Output: ./lib/matplotlib/stackplot.py:31:1: W293 blank line contains whitespace
stackplot(x, y) # where y = [y1, y2, y3, y4]

Check failure on line 32 in lib/matplotlib/stackplot.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] reported by reviewdog 🐶 W291 trailing whitespace Raw Output: ./lib/matplotlib/stackplot.py:32:67: W291 trailing whitespace
# or y = pd.DataFrame(np.random.random((4, 3)),
# index=["category_A", "category_B", "category_C", "category_D"],

Check failure on line 34 in lib/matplotlib/stackplot.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] reported by reviewdog 🐶 E501 line too long (103 > 88 characters) Raw Output: ./lib/matplotlib/stackplot.py:34:89: E501 line too long (103 > 88 characters)
# columns=["period_1", "period_2", "period_3"])

stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4 have length N

Check failure on line 38 in lib/matplotlib/stackplot.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] reported by reviewdog 🐶 W293 blank line contains whitespace Raw Output: ./lib/matplotlib/stackplot.py:38:1: W293 blank line contains whitespace

Check failure on line 39 in lib/matplotlib/stackplot.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] reported by reviewdog 🐶 W293 blank line contains whitespace Raw Output: ./lib/matplotlib/stackplot.py:39:1: W293 blank line contains whitespace

stackplot(x, y) # where y has shape (M, N)
stackplot(x, y1, y2, y3) # where y1, y2, y3, y4 have length N

baseline : {'zero', 'sym', 'wiggle', 'weighted_wiggle'}
Method used to calculate the baseline:
Expand Down
Loading
0