@@ -173,6 +173,7 @@ def _determine_element_layer(self):
173173 else :
174174 return "FM-Graph"
175175
176+ # Collections - check what type
176177 # Collections - check what type
177178 elif current_element == "collection" :
178179 return "FM-Graph"
@@ -196,7 +197,7 @@ def _determine_text_layer(self, text_content, fontsize):
196197 if not self .use_fm_layers :
197198 return "0"
198199
199- # PRIORITY 1: Check if ANY active group has method_symbol gid
200+ # Check if ANY active group has method_symbol gid
200201 for group_name in self ._groupd :
201202 if self ._group_gids .get (group_name ) == "method_symbol" :
202203 return "FM-Method"
@@ -391,20 +392,23 @@ def _draw_mpl_patch(self, gc, path, transform, rgbFace=None):
391392 if rgbFace is not None :
392393 if type (poly ) == list :
393394 for pol in poly :
395+ hatch = self .modelspace .add_hatch (color = 256 , dxfattribs = dxfattribs )
394396 hatch = self .modelspace .add_hatch (color = 256 , dxfattribs = dxfattribs )
395397 hpath = hatch .paths .add_polyline_path (
396398 pol .get_points (format = "xyb" ),
397399 is_closed = pol .closed ,
398400 )
399401 hatch .associate (hpath , [pol ])
400402 else :
403+ hatch = self .modelspace .add_hatch (color = 256 , dxfattribs = dxfattribs )
401404 hatch = self .modelspace .add_hatch (color = 256 , dxfattribs = dxfattribs )
402405 hpath = hatch .paths .add_polyline_path (
403406 poly .get_points (format = "xyb" ),
404407 is_closed = poly .closed ,
405408 )
406409 hatch .associate (hpath , [poly ])
407410 self ._draw_mpl_hatch (gc , path , transform , pline = poly , patch_layer = layer_name )
411+ self ._draw_mpl_hatch (gc , path , transform , pline = poly , patch_layer = layer_name )
408412
409413 def _draw_mpl_hatch (self , gc , path , transform , pline = None , patch_layer = None ):
410414 """Draw hatching from matplotlib hatch patterns"""
@@ -496,6 +500,7 @@ def draw_path_collection(
496500 """Path collections might be fills, bars, or method icons"""
497501 original_groupd = self ._groupd .copy ()
498502 self ._groupd .append ("method_collection" )
503+ self ._groupd .append ("method_collection" )
499504
500505 for path in paths :
501506 combined_transform = master_transform
0 commit comments