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 243457d commit d4e803cCopy full SHA for d4e803c
pandas/plotting/_matplotlib/core.py
@@ -893,7 +893,13 @@ def _make_legend(self) -> None:
893
elif self.subplots and self.legend:
894
for ax in self.axes:
895
if ax.get_visible():
896
- ax.legend(loc="best")
+ with warnings.catch_warnings():
897
+ warnings.filterwarnings(
898
+ "ignore",
899
+ "No artists with labels found to put in legend.",
900
+ UserWarning,
901
+ )
902
+ ax.legend(loc="best")
903
904
@final
905
@staticmethod
0 commit comments