@@ -908,10 +908,13 @@ def _addplot_columns(panid,panels,ydata,apdict,xdates,config):
908
908
mark = apdict ['marker' ]
909
909
color = apdict ['color' ]
910
910
alpha = apdict ['alpha' ]
911
+ edgecolors = apdict ['edgecolors' ]
912
+ linewidths = apdict ['linewidths' ]
913
+
911
914
if isinstance (mark ,(list ,tuple ,np .ndarray )):
912
915
_mscatter (xdates ,ydata ,ax = ax ,m = mark ,s = size ,color = color ,alpha = alpha )
913
916
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 )
915
918
elif aptype == 'bar' :
916
919
width = 0.8 if apdict ['width' ] is None else apdict ['width' ]
917
920
bottom = apdict ['bottom' ]
@@ -1026,6 +1029,7 @@ def _valid_addplot_kwargs():
1026
1029
valid_linestyles = ('-' ,'solid' ,'--' ,'dashed' ,'-.' ,'dashdot' ,'.' ,'dotted' ,None ,' ' ,'' )
1027
1030
valid_types = ('line' ,'scatter' ,'bar' , 'ohlc' , 'candle' ,'step' )
1028
1031
valid_stepwheres = ('pre' ,'post' ,'mid' )
1032
+ valid_edgecolors = ('face' , 'none' , None )
1029
1033
1030
1034
vkwargs = {
1031
1035
'scatter' : { 'Default' : False ,
@@ -1053,7 +1057,13 @@ def _valid_addplot_kwargs():
1053
1057
'linestyle' : { 'Default' : None ,
1054
1058
'Validator' : lambda value : value in valid_linestyles },
1055
1059
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`
1057
1067
'Validator' : lambda value : isinstance (value ,(int ,float )) or
1058
1068
all ([isinstance (v ,(int ,float )) for v in value ]) },
1059
1069
0 commit comments