@@ -2358,11 +2358,15 @@ def vlines(self, x, ymin, ymax, colors='k', linestyle='solid', **kwargs):
23582358 determined by ymin and ymax
23592359
23602360
2361- colors is a line collections color args, either a single color or a len(x) list of colors
2361+ colors is a line collections color args, either a single color
2362+ or a len(x) list of colors
23622363
23632364 linestyle is one of solid|dashed|dashdot|dotted
23642365
23652366 Returns the LineCollection that was added
2367+
2368+ kwargs are LineCollection properties:
2369+ %(LineCollection)s
23662370 """
23672371
23682372 if kwargs .get ('fmt' ) is not None :
@@ -2393,7 +2397,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyle='solid', **kwargs):
23932397 verts = [ ((thisx , thisymin ), (thisx , thisymax )) for thisx , (thisymin , thisymax ) in zip (x ,Y )]
23942398 coll = LineCollection (verts , colors = colors , linestyle = linestyle )
23952399 self .add_collection (coll )
2396-
2400+ coll . update ( kwargs )
23972401
23982402 minx = nx .amin (x )
23992403 maxx = nx .amax (x )
@@ -2404,7 +2408,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyle='solid', **kwargs):
24042408 self .autoscale_view ()
24052409
24062410 return coll
2407- vlines .__doc__ = dedent (vlines .__doc__ )
2411+ vlines .__doc__ = dedent (vlines .__doc__ ) % artist . kwdocd
24082412
24092413 #### Basic plotting
24102414 def plot (self , * args , ** kwargs ):
0 commit comments