@@ -72,6 +72,7 @@ def __init__(self, *,
72
72
joinstyle = JoinStyle .miter
73
73
74
74
self ._hatch_color = colors .to_rgba (mpl .rcParams ['hatch.color' ])
75
+ self ._hatch_linewidth = mpl .rcParams ['hatch.linewidth' ]
75
76
self ._fill = bool (fill ) # needed for set_facecolor call
76
77
if color is not None :
77
78
if edgecolor is not None or facecolor is not None :
@@ -571,6 +572,14 @@ def get_hatch(self):
571
572
"""Return the hatching pattern."""
572
573
return self ._hatch
573
574
575
+ def set_hatch_linewidth (self , hatch_linewidth ):
576
+ """Set the hatch linewidth"""
577
+ self ._hatch_linewidth = hatch_linewidth
578
+
579
+ def get_hatch_linewidth (self ):
580
+ """Return the hatch linewidth"""
581
+ return self ._hatch_linewidth
582
+
574
583
def _draw_paths_with_artist_properties (
575
584
self , renderer , draw_path_args_list ):
576
585
"""
@@ -605,6 +614,7 @@ def _draw_paths_with_artist_properties(
605
614
if self ._hatch :
606
615
gc .set_hatch (self ._hatch )
607
616
gc .set_hatch_color (self ._hatch_color )
617
+ mhatch ._set_hatch_linewidth (gc , self .get_hatch_linewidth ())
608
618
609
619
if self .get_sketch_params () is not None :
610
620
gc .set_sketch_params (* self .get_sketch_params ())
0 commit comments