8000 Rephrase minimal example for clarity · matplotlib/matplotlib@f5392c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5392c6

Browse files
Rephrase minimal example for clarity
1 parent 5d722a9 commit f5392c6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/matplotlib/stackplot.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ def stackplot(axes, x, *args,
2525
----------
2626
x : (N, ) array-like
2727
28-
y : (M, N) array-like or pandas.DataFrame
29-
The data is assumed to be unstacked. Each of the following
28+
y : (M, N) array-like
29+
The data can be either stacked or unstacked. Each of the following
3030
calls is legal::
3131
32-
stackplot(x, y) # where y = [y1, y2, y3, y4]
33-
# or y = pd.DataFrame(np.random.random((4, 3)),
34-
# index=["category_A", "category_B", "category_C", "category_D"],
35-
# columns=["period_1", "period_2", "period_3"])
32+
stackplot(x, y) # where y has shape (M, N) e.g. y = [y1, y2, y3, y4]
3633
3734
stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4 have length N
3835

0 commit comments

Comments
 (0)
0