From 640a67e431fb3e3b021ed7c0f7fc707bc6dc37df Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Mon, 20 Apr 2015 01:23:48 +0100 Subject: [PATCH] Change documentation of legend to reflect default upper-right The documentation stated that the default legend position was 0, corresponding to "best". This does not match the behavior of the current code, which uses as default the rcParam value "legend.loc", which at time of writing defaults to "upper-right". --- lib/matplotlib/axes/_axes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index ded4595fbfb6..c72c724b46ce 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -288,7 +288,7 @@ def legend(self, *args, **kwargs): Parameters ---------- - loc : int or string or pair of floats, default: 0 + loc : int or string or pair of floats, default: 'upper right' The location of the legend. Possible codes are: =============== =============