@@ -173,6 +173,7 @@ def __init__(self, *,
173
173
self ._edge_is_mapped = None
174
174
self ._mapped_colors = None # calculated in update_scalarmappable
175
175
self ._hatch_color = mcolors .to_rgba (mpl .rcParams ['hatch.color' ])
176
+ self ._hatch_linewidth = mpl .rcParams ['hatch.linewidth' ]
176
177
self .set_facecolor (facecolors )
177
178
self .set_edgecolor (edgecolors )
178
179
self .set_linewidth (linewidths )
@@ -363,6 +364,9 @@ def draw(self, renderer):
363
364
if self ._hatch :
364
365
gc .set_hatch (self ._hatch )
365
366
gc .set_hatch_color (self ._hatch_color )
367
+ print (self ._hatch_linewidth )
368
+ print (self .get_hatch_linewidth ())
369
+ mhatch ._set_hatch_linewidth (gc , self .get_hatch_linewidth ())
366
370
367
371
if self .get_sketch_params () is not None :
368
372
gc .set_sketch_params (* self .get_sketch_params ())
@@ -541,6 +545,14 @@ def get_hatch(self):
541
545
"""Return the current hatching pattern."""
542
546
return self ._hatch
543
547
548
+ def set_hatch_linewidth (self , lw ):
549
+ """Set the hatch linewidth"""
550
+ self ._hatch_linewidth = lw
551
+
552
+ def get_hatch_linewidth (self ):
553
+ """Return the hatch linewidth"""
554
+ return self ._hatch_linewidth
555
+
544
556
def set_offsets (self , offsets ):
545
557
"""
546
558
Set the offsets for the collection.
0 commit comments