@@ -36,7 +36,7 @@ from collections.abc import Callable, Iterable, Sequence
36
36
from typing import Any , Literal , overload
37
37
import numpy as np
38
38
from numpy .typing import ArrayLike
39
- from matplotlib .typing import ColorType , MarkerType , LineStyleType
39
+ from matplotlib .typing import ColorType , MarkerType , LegendLocType , LineStyleType
40
40
import pandas as pd
41
41
42
42
@@ -65,13 +65,16 @@ class Axes(_AxesBase):
65
65
@overload
66
66
def legend (self ) -> Legend : ...
67
67
@overload
68
- def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ], ** kwargs ) -> Legend : ...
68
+ def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ],
69
+ * , loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
69
70
@overload
70
- def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
71
+ def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]],
72
+ loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
71
73
@overload
72
- def legend (self , labels : Iterable [str ], ** kwargs ) -> Legend : ...
74
+ def legend (self , labels : Iterable [str ],
75
+ * , loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
73
76
@overload
74
- def legend (self , ** kwargs ) -> Legend : ...
77
+ def legend (self , * , loc : LegendLocType | None = ..., * *kwargs ) -> Legend : ...
75
78
76
79
def inset_axes (
77
80
self ,
0 commit comments