@@ -432,7 +432,7 @@ def draw(self, renderer):
432432 self .get_facecolor (), self .get_edgecolor (),
433433 self ._linewidths , self ._linestyles ,
434434 self ._antialiaseds , self ._urls ,
435- "screen" , self .get_hatchcolor ()
435+ "screen" , hatchcolors = self .get_hatchcolor ()
436436 )
437437 except TypeError :
438438 hatchcolors_arg_supported = False
@@ -442,11 +442,12 @@ def draw(self, renderer):
442442 ipaths , ilinestyles = self ._get_inverse_paths_linestyles ()
443443 args = [offsets , offset_trf , [mcolors .to_rgba ("none" )], self ._gapcolor ,
444444 self ._linewidths , ilinestyles , self ._antialiaseds , self ._urls ,
445- "screen" , self . get_hatchcolor () ]
445+ "screen" ]
446446
447447 if hatchcolors_arg_supported :
448448 renderer .draw_path_collection (gc , transform .frozen (), ipaths ,
449- self .get_transforms (), * args )
449+ self .get_transforms (), * args ,
450+ hatchcolors = self .get_hatchcolor ())
450451 else :
451452 # If the renderer does not support the hatchcolors argument,
452453 # iterate over the paths and draw them one by one.
@@ -463,11 +464,12 @@ def draw(self, renderer):
463464
464465 args = [offsets , offset_trf , self .get_facecolor (), self .get_edgecolor (),
465466 self ._linewidths , self ._linestyles , self ._antialiaseds , self ._urls ,
466- "screen" , self . get_hatchcolor () ]
467+ "screen" ]
467468
468469 if hatchcolors_arg_supported :
469470 renderer .draw_path_collection (gc , transform .frozen (), paths ,
470- self .get_transforms (), * args )
471+ self .get_transforms (), * args ,
472+ hatchcolors = self .get_hatchcolor ())
471473 else :
472474 path_ids = renderer ._iter_collection_raw_paths (
473475 transform .frozen (), paths , self .get_transforms ())
0 commit comments