Skip to content
Merged
Changes from 3 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
12 changes: 8 additions & 4 deletions lib/matplotlib/stackplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@

Parameters
----------
x : (N,) array-like
x : (N, ) array-like
Comment thread
timhoffm marked this conversation as resolved.
Outdated

y : (M, N) array-like
The data is assumed to be unstacked. Each of the following
The data can be either stacked or 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 has shape (M, N) e.g. 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:81: W291 trailing whitespace

Comment thread
thedatacurious marked this conversation as resolved.
Outdated
stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4 have length N

Check failure on line 35 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:35:1: W293 blank line contains whitespace

Check failure on line 36 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:36:1: W293 blank line contains whitespace

Comment thread
timhoffm marked this conversation as resolved.
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