We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e65332 commit d0eed0eCopy full SHA for d0eed0e
lib/matplotlib/axes/_base.pyi
@@ -225,7 +225,7 @@ class _AxesBase(martist.Artist):
225
ymin: float | None = ...,
226
ymax: float | None = ...
227
) -> tuple[float, float, float, float]: ...
228
- def get_legend(self) -> Legend: ...
+ def get_legend(self) -> Legend | None: ...
229
def get_images(self) -> list[AxesImage]: ...
230
def get_lines(self) -> list[Line2D]: ...
231
def get_xaxis(self) -> XAxis: ...
0 commit comments