Skip to content

Commit 1f675ad

Browse files
committed
Fix typo in set_xlim() docstring
1 parent bf0dfde commit 1f675ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False, **kw):
28232823
For example, suppose *x* is years before present.
28242824
Then one might use::
28252825
2826-
set_ylim(5000, 0)
2826+
set_xlim(5000, 0)
28272827
28282828
so 5000 years ago is on the left of the plot and the
28292829
present is on the right.

0 commit comments

Comments
 (0)