@@ -910,12 +910,12 @@ def _addplot_columns(panid,panels,ydata,apdict,xdates,config):
910
910
alpha = apdict ['alpha' ]
911
911
ax .plot (xdates ,ydata ,linestyle = ls ,color = color ,linewidth = width ,alpha = alpha )
912
912
elif aptype == 'step' :
913
- where = apdict ['where ' ]
913
+ stepwhere = apdict ['stepwhere ' ]
914
914
ls = apdict ['linestyle' ]
915
915
color = apdict ['color' ]
916
916
width = apdict ['width' ] if apdict ['width' ] is not None else 1.6 * config ['_width_config' ]['line_width' ]
917
917
alpha = apdict ['alpha' ]
918
- ax .step (range ( len ( xdates )) ,ydata ,where = where ,linestyle = ls ,color = color ,linewidth = width ,alpha = alpha )
918
+ ax .step (xdates ,ydata ,where = stepwhere ,linestyle = ls ,color = color ,linewidth = width ,alpha = alpha )
919
919
else :
920
920
raise ValueError ('addplot type "' + str (aptype )+ '" NOT yet supported.' )
921
921
@@ -1003,7 +1003,7 @@ def _valid_addplot_kwargs():
1003
1003
1004
1004
valid_linestyles = ('-' ,'solid' ,'--' ,'dashed' ,'-.' ,'dashdot' ,'.' ,'dotted' ,None ,' ' ,'' )
1005
1005
valid_types = ('line' ,'scatter' ,'bar' , 'ohlc' , 'candle' ,'step' )
1006
- valid_wheres = ('pre' ,'post' ,'mid' )
1006
+ valid_stepwheres = ('pre' ,'post' ,'mid' )
1007
1007
1008
1008
vkwargs = {
1009
1009
'scatter' : { 'Default' : False ,
@@ -1064,8 +1064,8 @@ def _valid_addplot_kwargs():
1064
1064
'yscale' : { 'Default' : None ,
1065
1065
'Validator' : lambda value : _yscale_validator (value ) },
1066
1066
1067
- 'where ' : { 'Default' : 'pre' ,
1068
- 'Validator' : lambda value : value in valid_wheres },
1067
+ 'stepwhere ' : { 'Default' : 'pre' ,
1068
+ 'Validator' : lambda value : value in valid_stepwheres },
1069
1069
}
1070
1070
1071
1071
_validate_vkwargs_dict (vkwargs )
0 commit comments