8000
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 474bf00 commit b3ac14cCopy full SHA for b3ac14c
lib/matplotlib/legend.py
@@ -979,9 +979,8 @@ def _auto_legend_data(self):
979
lines.append(
980
artist.get_transform().transform_path(artist.get_path()))
981
elif isinstance(artist, PolyCollection):
982
- paths = artist.get_paths()
983
- for path in paths:
984
- lines.append(artist.get_transform().transform_path(path))
+ lines.extend(artist.get_transform().transform_path(path)
+ for path in artist.get_paths())
985
elif isinstance(artist, Collection):
986
transform, transOffset, hoffsets, _ = artist._prepare_points()
987
if len(hoffsets):
0 commit comments