From cbc22e6e9e071f370bcc01fce5866843fb327fb1 Mon Sep 17 00:00:00 2001 From: Elan Ernest <23121882+ImportanceOfBeingErnest@users.noreply.github.com> Date: Thu, 11 Oct 2018 14:33:59 +0200 Subject: [PATCH] Backport PR #12489: Fix typo in documentation of ylim --- lib/matplotlib/pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 2a8fbc54fd4e..32c858452eb2 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -1457,7 +1457,7 @@ def ylim(*args, **kwargs): *top* as kwargs, i.e.:: ylim(top=3) # adjust the top leaving bottom unchanged - ylim(bottom=1) # adjust the top leaving bottom unchanged + ylim(bottom=1) # adjust the bottom leaving top unchanged Setting limits turns autoscaling off for the y-axis.