@@ -228,11 +228,11 @@ def get_fill(self):
228228 'return whether fill is set'
229229 return self .fill
230230
231- def set_hatch (self , h ):
231+ def set_hatch (self , hatch ):
232232 """
233233 Set the hatching pattern
234234
235- hatch can be one of::
235+ * hatch* can be one of::
236236
237237 / - diagonal hatching
238238 \ - back diagonal
@@ -247,10 +247,8 @@ def set_hatch(self, h):
247247
248248 CURRENT LIMITATIONS:
249249
250- 1. Hatching is supported in the PostScript and the PDF backend only.
251-
252- 2. Hatching is done with solid black lines of width 0.
253-
250+ 1. Hatching is supported in the PostScript, PDF, SVG and Agg
251+ backends only.
254252
255253 ACCEPTS: [ '/' | '\\ ' | '|' | '-' | '#' | 'x' ] (ps & pdf backend only)
256254 """
@@ -2655,7 +2653,7 @@ def __call__(self, path, mutation_size, linewidth,
26552653 """
26562654
26572655 path = make_path_regular (path )
2658-
2656+
26592657 if aspect_ratio is not None :
26602658 # Squeeze the given height by the aspect_ratio
26612659
@@ -2808,27 +2806,27 @@ def transmute(self, path, mutation_size, linewidth):
28082806 [(x3 + ddxB , y3 + ddyB )]]),
28092807 path .codes )]
28102808 _fillable = [False ]
2811-
2809+
28122810 if self .beginarrow :
28132811 if self .fillbegin :
28142812 p = np .concatenate ([verticesA , [verticesA [0 ], verticesA [0 ]], ])
2815- c = np .concatenate ([codesA , [Path .LINETO , Path .CLOSEPOLY ]])
2813+ c = np .concatenate ([codesA , [Path .LINETO , Path .CLOSEPOLY ]])
28162814 _path .append (Path (p , c ))
28172815 _fillable .append (True )
28182816 else :
28192817 _path .append (Path (verticesA , codesA ))
28202818 _fillable .append (False )
2821-
2819+
28222820 if self .endarrow :
28232821 if self .fillend :
28242822 _fillable .append (True )
28252823 p = np .concatenate ([verticesB , [verticesB [0 ], verticesB [0 ]], ])
2826- c = np .concatenate ([codesB , [Path .LINETO , Path .CLOSEPOLY ]])
2824+ c = np .concatenate ([codesB , [Path .LINETO , Path .CLOSEPOLY ]])
28272825 _path .append (Path (p , c ))
28282826 else :
28292827 _fillable .append (False )
28302828 _path .append (Path (verticesB , codesB ))
2831-
2829+
28322830 return _path , _fillable
28332831
28342832
@@ -2926,7 +2924,7 @@ def __init__(self, head_length=.4, head_width=.2):
29262924
29272925 super (ArrowStyle .CurveFilledA , self ).__init__ ( \
29282926 beginarrow = True , endarrow = False ,
2929- fillbegin = True , fillend = False ,
2927+ fillbegin = True , fillend = False ,
29302928 head_length = head_length , head_width = head_width )
29312929
29322930 _style_list ["<|-" ] = CurveFilledA
@@ -2948,7 +2946,7 @@ def __init__(self, head_length=.4, head_width=.2):
29482946
29492947 super (ArrowStyle .CurveFilledB , self ).__init__ ( \
29502948 beginarrow = False , endarrow = True ,
2951- fillbegin = False , fillend = True ,
2949+ fillbegin = False , fillend = True ,
29522950 head_length = head_length , head_width = head_width )
29532951
29542952 _style_list ["-|>" ] = CurveFilledB
@@ -2970,7 +2968,7 @@ def __init__(self, head_length=.4, head_width=.2):
29702968
29712969 super (ArrowStyle .CurveFilledAB , self ).__init__ ( \
29722970 beginarrow = True , endarrow = True ,
2973- fillbegin = True , fillend = True ,
2971+ fillbegin = True , fillend = True ,
29742972 head_length = head_length , head_width = head_width )
29752973
29762974 _style_list ["<|-|>" ] = CurveFilledAB
@@ -3532,7 +3530,7 @@ def get_path(self):
35323530
35333531 if cbook .iterable (fillable ):
35343532 _path = concatenate_paths (_path )
3535-
3533+
35363534 return self .get_transform ().inverted ().transform_path (_path )
35373535
35383536
@@ -3604,7 +3602,7 @@ def draw(self, renderer):
36043602 if not cbook .iterable (fillable ):
36053603 path = [path ]
36063604 fillable = [fillable ]
3607-
3605+
36083606
36093607 affine = transforms .IdentityTransform ()
36103608
@@ -3615,6 +3613,6 @@ def draw(self, renderer):
36153613 renderer .draw_path (gc , p , affine , rgbFace )
36163614 else :
36173615 renderer .draw_path (gc , p , affine , None )
3618-
3616+
36193617
36203618 renderer .close_group ('patch' )
0 commit comments