8000 Merge pull request #828 from boushley/master · matplotlib/matplotlib@e8356dc · GitHub
[go: up one dir, main page]

Skip to content

Commit e8356dc

Browse files
committed
Merge pull request #828 from boushley/master
Fixing a mismatch in the documentation.
2 parents a1bc26a + ef21fc1 commit e8356dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/users/pyplot_tutorial.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ functions are directed to the current axes
1616
.. plot:: pyplots/pyplot_simple.py
1717
:include-source:
1818

19-
You may be wondering why the x-axis ranges from 0-2 and the y-axis
20-
from 1-3. If you provide a single list or array to the
19+
You may be wondering why the x-axis ranges from 0-3 and the y-axis
20+
from 1-4. If you provide a single list or array to the
2121
:func:`~matplotlib.pyplot.plot` command, matplotlib assumes it is a
2222
sequence of y values, and automatically generates the x values for
2323
you. Since python ranges start with 0, the default x vector has the
2424
same length as y but starts with 0. Hence the x data are
25-
``[0,1,2]``.
25+
``[0,1,2,3]``.
2626

2727
:func:`~matplotlib.pyplot.plot` is a versatile command, and will take
2828
an arbitrary number of arguments. For example, to plot x versus y,

0 commit comments

Comments
 (0)
0