@@ -908,10 +908,13 @@ def _addplot_columns(panid,panels,ydata,apdict,xdates,config):
908908 mark = apdict ['marker' ]
909909 color = apdict ['color' ]
910910 alpha = apdict ['alpha' ]
911+ edgecolors = apdict ['edgecolors' ]
912+ linewidths = apdict ['linewidths' ]
913+
911914 if isinstance (mark ,(list ,tuple ,np .ndarray )):
912915 _mscatter (xdates ,ydata ,ax = ax ,m = mark ,s = size ,color = color ,alpha = alpha )
913916 else :
914- ax .scatter (xdates ,ydata ,s = size ,marker = mark ,color = color ,alpha = alpha )
917+ ax .scatter (xdates , ydata , s = size , marker = mark , color = color , alpha = alpha , edgecolors = edgecolors , linewidths = linewidths )
915918 elif aptype == 'bar' :
916919 width = 0.8 if apdict ['width' ] is None else apdict ['width' ]
917920 bottom = apdict ['bottom' ]
@@ -1026,6 +1029,7 @@ def _valid_addplot_kwargs():
10261029 valid_linestyles = ('-' ,'solid' ,'--' ,'dashed' ,'-.' ,'dashdot' ,'.' ,'dotted' ,None ,' ' ,'' )
10271030 valid_types = ('line' ,'scatter' ,'bar' , 'ohlc' , 'candle' ,'step' )
10281031 valid_stepwheres = ('pre' ,'post' ,'mid' )
1032+ valid_edgecolors = ('face' , 'none' , None )
10291033
10301034 vkwargs = {
10311035 'scatter' : { 'Default' : False ,
@@ -1053,7 +1057,13 @@ def _valid_addplot_kwargs():
10531057 'linestyle' : { 'Default' : None ,
10541058 'Validator' : lambda value : value in valid_linestyles },
10551059
1056- 'width' : { 'Default' : None , # width of `bar` or `line`
1060+ 'linewidths' : {'Default' : None ,
1061+ 'Validator' : lambda value : isinstance (value ,(int ,float )) },
1062+
1063+ 'edgecolors' : {'Default' : None ,
1064+ 'Validator' : lambda value : mcolors .is_color_like (value ) or value in valid_edgecolors },
1065+
1066+ 'width' : { 'Default' : None , # width of `bar` or `line`
10571067 'Validator' : lambda value : isinstance (value ,(int ,float )) or
10581068 all ([isinstance (v ,(int ,float )) for v in value ]) },
10591069
0 commit comments