Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9967a3e

Browse filesBrowse files
committed
clarify example in plot docstring
1 parent e629aff commit 9967a3e
Copy full SHA for 9967a3e

File tree

Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,10 +1418,14 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
14181418
directly to *x*, *y*. A separate data set will be drawn for every
14191419
column.
14201420
1421-
Example: an array ``a`` where the first column represents the *x*
1422-
values and the other columns are the *y* columns::
1421+
Example: For an array ``a`` with shape (N, m) calling::
14231422
1424-
>>> plot(a[0], a[1:])
1423+
>>> plot(a)
1424+
1425+
is equivalent to:
1426+
1427+
>>> for i in range(m):
1428+
... plot(a[:, i])
14251429
14261430
- The third way is to specify multiple sets of *[x]*, *y*, *[fmt]*
14271431
groups::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.