@@ -327,12 +327,12 @@ def _valid_plot_kwargs():
327
327
328
328
'scale_width_adjustment' : { 'Default' : None ,
329
329
'Description' : 'scale width of plot objects wider, > 1.0, or narrower, < 1.0' +
330
- ' may also be a dict to scale individual widths.' + ,
330
+ ' may also be a dict to scale individual widths.' +
331
331
' (See also "widths" tutorial in mplfinance examples folder).' ,
332
332
'Validator' : lambda value : isinstance (value ,dict ) and len (value ) > 0 },
333
333
334
334
'update_width_config' : { 'Default' : None ,
335
- 'Description' : 'dict - update individual items in width configuration.' + ,
335
+ 'Description' : 'dict - update individual items in width configuration.' +
336
336
' (See also "widths" tutorial in mplfinance examples folder).' ,
337
337
'Validator' : lambda value : isinstance (value ,dict ) and len (value ) > 0 },
338
338
@@ -349,24 +349,25 @@ def _valid_plot_kwargs():
349
349
'Validator' : lambda value : isinstance (value ,mpl_axes .Axes ) },
350
350
351
351
'volume_exponent' : { 'Default' : None ,
352
- 'Description' : '' ,
352
+ 'Description' : 'integer exponent on the volume axis' +
353
+ ' (or set to "legacy" for old mplfinance style)' ,
353
354
'Validator' : lambda value : isinstance (value ,int ) or value == 'legacy' },
354
355
355
356
'tz_localize' : { 'Default' : True ,
356
- 'Description' : '' ,
357
+ 'Description' : 'True|False localize the times in the DatetimeIndex ' ,
357
358
'Validator' : lambda value : isinstance (value ,bool ) },
358
359
359
360
'yscale' : { 'Default' : None ,
360
- 'Description' : '' ,
361
+ 'Description' : 'y-axis scale: "linear", "log", "symlog", or "logit" ' ,
361
362
'Validator' : lambda value : _yscale_validator (value ) },
362
363
363
364
'volume_yscale' : { 'Default' : None ,
364
- 'Description' : '' ,
365
+ 'Description' : 'Volume y-axis scale: "linear", "log", "symlog", or "logit" ' ,
365
366
'Validator' : lambda value : _yscale_validator (value ) },
366
367
367
368
'warn_too_much_data' : { 'Default' : 599 ,
368
- 'Description' : ( 'Tolerance for data amount in plot. Default=599 rows.' +
369
- ' Values greater than \' warn_too_much_data\' will trigger a warning.' ) ,
369
+ 'Description' : 'Tolerance for data amount in plot. Default=599 rows.' +
370
+ ' Values greater than \' warn_too_much_data\' will trigger a warning.' ,
370
371
'Validator' : lambda value : isinstance (value ,int ) },
371
372
}
372
373
@@ -1140,31 +1141,31 @@ def _valid_addplot_kwargs():
1140
1141
1141
1142
vkwargs = {
1142
1143
'scatter' : { 'Default' : False ,
1143
- 'Description' : '' ,
1144
+ 'Description' : "Deprecated. (Use kwarg `type='scatter' instead." ,
1144
1145
'Validator' : lambda value : isinstance (value ,bool ) },
1145
1146
1146
1147
'type' : { 'Default' : 'line' ,
1147
- 'Description' : '' ,
1148
+ 'Description' : 'addplot type: "line","scatter","bar", "ohlc", "candle","step" ' ,
1148
1149
'Validator' : lambda value : value in valid_types },
1149
1150
1150
1151
'mav' : { 'Default' : None ,
1151
- 'Description' : '' ,
1152
+ 'Description' : 'Moving Average window size(s); (int or tuple of ints) ' ,
1152
1153
'Validator' : _mav_validator },
1153
1154
1154
1155
'panel' : { 'Default' : 0 ,
1155
- 'Description' : '' ,
1156
+ 'Description' : 'Panel (int 0-31) to use for this addplot ' ,
1156
1157
'Validator' : lambda value : _valid_panel_id (value ) },
1157
1158
1158
1159
'marker' : { 'Default' : 'o' ,
1159
- 'Description' : '' ,
1160
+ 'Description' : "marker for `type='scatter'` plot" ,
1160
1161
'Validator' : lambda value : _bypass_kwarg_validation (value ) },
1161
1162
1162
1163
'markersize' : { 'Default' : 18 ,
1163
- 'Description' : 'size of marker for `type=scatter`; default=18' ,
1164
+ 'Description' : 'size of marker for `type=" scatter" `; default=18' ,
1164
1165
'Validator' : lambda value : isinstance (value ,(int ,float )) },
1165
1166
1166
1167
'color' : { 'Default' : None ,
1167
- 'Description' : 'color of line, scatter marker, or bar' ,
1168
+ 'Description' : 'color (or sequence of colors) of line(s) , scatter marker(s) , or bar(s). ' ,
1168
1169
'Validator' : lambda value : mcolors .is_color_like (value ) or
1169
1170
(isinstance (value ,(list ,tuple ,np .ndarray )) and all ([mcolors .is_color_like (v ) for v in value ])) },
1170
1171
@@ -1173,15 +1174,15 @@ def _valid_addplot_kwargs():
1173
1174
'Validator' : lambda value : value in valid_linestyles },
1174
1175
1175
1176
'linewidths' : { 'Default' : None ,
1176
- 'Description' : '' ,
1177
+ 'Description' : 'edge widths of scatter markers ' ,
1177
1178
'Validator' : lambda value : isinstance (value ,(int ,float )) },
1178
1179
1179
1180
'edgecolors' : { 'Default' : None ,
1180
- 'Description' : '' ,
1181
+ 'Description' : 'edgecolors of scatter markers ' ,
1181
1182
'Validator' : lambda value : mcolors .is_color_like (value ) or value in valid_edgecolors },
1182
1183
1183
1184
'width' : { 'Default' : None , # width of `bar` or `line`
1184
- 'Description' : '' ,
1185
+ 'Description' : 'width of bar or line for `type="bar"` or `type="line" ' ,
1185
1186
'Validator' : lambda value : isinstance (value ,(int ,float )) or
1186
1187
all ([isinstance (v ,(int ,float )) for v in value ]) },
1187
1188
0 commit comments