@@ -915,10 +915,13 @@ def _addplot_columns(panid,panels,ydata,apdict,xdates,config):
915
915
mark = apdict ['marker' ]
916
916
color = apdict ['color' ]
917
917
alpha = apdict ['alpha' ]
918
+ edgecolors = apdict ['edgecolors' ]
919
+ linewidths = apdict ['linewidths' ]
920
+
918
921
if isinstance (mark ,(list ,tuple ,np .ndarray )):
919
- _mscatter (xdates ,ydata ,ax = ax ,m = mark ,s = size ,color = color ,alpha = alpha )
922
+ _mscatter (xdates , ydata , ax = ax , m = mark , s = size , color = color , alpha = alpha , edgecolors = edgecolors , linewidths = linewidths )
920
923
else :
921
- ax .scatter (xdates ,ydata ,s = size ,marker = mark ,color = color ,alpha = alpha )
924
+ ax .scatter (xdates , ydata , s = size , marker = mark , color = color , alpha = alpha , edgecolors = edgecolors , linewidths = linewidths )
922
925
elif aptype == 'bar' :
923
926
width = 0.8 if apdict ['width' ] is None else apdict ['width' ]
924
927
bottom = apdict ['bottom' ]
@@ -1033,6 +1036,7 @@ def _valid_addplot_kwargs():
1033
1036
valid_linestyles = ('-' ,'solid' ,'--' ,'dashed' ,'-.' ,'dashdot' ,'.' ,'dotted' ,None ,' ' ,'' )
1034
1037
valid_types = ('line' ,'scatter' ,'bar' , 'ohlc' , 'candle' ,'step' )
1035
1038
valid_stepwheres = ('pre' ,'post' ,'mid' )
1039
+ valid_edgecolors = ('face' , 'none' , None )
1036
1040
1037
1041
vkwargs = {
1038
1042
'scatter' : { 'Default' : False ,
@@ -1060,7 +1064,13 @@ def _valid_addplot_kwargs():
1060
1064
'linestyle' : { 'Default' : None ,
1061
1065
'Validator' : lambda value : value in valid_linestyles },
1062
1066
1063
- 'width' : { 'Default' : None , # width of `bar` or `line`
1067
+ 'linewidths' : {'Default' : None ,
1068
+ 'Validator' : lambda value : isinstance (value ,(int ,float )) },
1069
+
1070
+ 'edgecolors' : {'Default' : None ,
1071
+ 'Validator' : lambda value : mcolors .is_color_like (value ) or value in valid_edgecolors },
1072
+
1073
+ 'width' : { 'Default' : None , # width of `bar` or `line`
1064
1074
'Validator' : lambda value : isinstance (value ,(int ,float )) or
1065
1075
all ([isinstance (v ,(int ,float )) for v in value ]) },
1066
1076
0 commit comments