Leaklens

matplotlib__matplotlib-20859

Adding a legend to a `SubFigure` doesn't work

Verdict: the fix is stated in the issue (Tier A).

Changing L437 here to check against `FigureBase` fixes it.

The text states the fix: “Changing L437 here to check against `FigureBase` fixes it.”

All 500 SWE-bench Verified tasks · more matplotlib/matplotlib tasks · How the check works