Skip to content

Commit 640a67e

Browse files
committed
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".
1 parent 62cce14 commit 640a67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def legend(self, *args, **kwargs):
288288
289289
Parameters
290290
----------
291-
loc : int or string or pair of floats, default: 0
291+
loc : int or string or pair of floats, default: 'upper right'
292292
The location of the legend. Possible codes are:
293293
294294
=============== =============

0 commit comments

Comments
 (0)