File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -978,15 +978,15 @@ def _auto_legend_data(self):
978
978
elif isinstance (artist , Patch ):
979
979
lines .append (
980
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 ))
981
985
elif isinstance (artist , Collection ):
982
986
transform , transOffset , hoffsets , _ = artist ._prepare_points ()
983
987
if len (hoffsets ):
984
988
for offset in transOffset .transform (hoffsets ):
985
989
offsets .append (offset )
986
- if isinstance (artist , PolyCollection ):
987
- paths = artist .get_paths ()
988
- for path in paths :
989
- lines .append (artist .get_transform ().transform_path (path ))
990
990
elif isinstance (artist , Text ):
991
991
bboxes .append (artist .get_window_extent ())
992
992
You can’t perform that action at this time.
0 commit comments