@@ -427,7 +427,8 @@ def _valid_lines_kwargs():
427
427
( isinstance (value ,(list ,tuple )) and
428
428
all ([mcolors .is_color_like (v ) for v in value ]) ) },
429
429
'linestyle' : { 'Default' : '-' ,
430
- 'Validator' : lambda value : value is None or value in valid_linestyles },
430
+ 'Validator' : lambda value : value is None or value in valid_linestyles or
431
+ all ([v in valid_linestyles for v in value ]) },
431
432
'linewidths' : { 'Default' : None ,
432
433
'Validator' : lambda value : value is None or
433
434
isinstance (value ,(float ,int )) or
@@ -1124,7 +1125,7 @@ def _construct_aline_collections(alines, dtix=None):
1124
1125
'alines' : the same as defined above: sequence of price, or dates, or segments
1125
1126
'colors' : colors for the above alines
1126
1127
'linestyle' : line types for the above alines
1127
- 'linewidths' : line types for the above alines
1128
+ 'linewidths' : line widths for the above alines
1128
1129
1129
1130
dtix: date index for the x-axis, used for converting the dates when
1130
1131
x-values are 'evenly spaced integers' (as when skipping non-trading days)
@@ -1174,7 +1175,7 @@ def _construct_hline_collections(hlines,minx,maxx):
1174
1175
'hlines' : the same as defined above: sequence of price, or dates, or segments
1175
1176
'colors' : colors for the above hlines
1176
1177
'linestyle' : line types for the above hlines
1177
- 'linewidths' : line types for the above hlines
1178
+ 'linewidths' : line widths for the above hlines
1178
1179
1179
1180
minx : the minimum value for x for the horizontal line, already converted to `xdates` format
1180
1181
maxx : the maximum value for x for the horizontal line, already converted to `xdates` format
@@ -1234,7 +1235,7 @@ def _construct_vline_collections(vlines,dtix,miny,maxy):
1234
1235
'vlines' : the same as defined above: sequence of dates/datetimes
1235
1236
'colors' : colors for the above vlines
1236
1237
'linestyle' : line types for the above vlines
1237
- 'linewidths' : line types for the above vlines
1238
+ 'linewidths' : line widths for the above vlines
1238
1239
1239
1240
dtix: date index for the x-axis, used for converting the dates when
1240
1241
x-values are 'evenly spaced integers' (as when skipping non-trading days)
@@ -1300,7 +1301,7 @@ def _construct_tline_collections(tlines, dtix, dates, opens, highs, lows, closes
1300
1301
'tlines' : the same as defined above: sequence of pairs of date[time]s
1301
1302
'colors' : colors for the above tlines
1302
1303
'linestyle' : line types for the above tlines
1303
- 'linewidths' : line types for the above tlines
1304
+ 'linewidths' : line widths for the above tlines
1304
1305
1305
1306
dtix: date index for the x-axis, used for converting the dates when
1306
1307
x-values are 'evenly spaced integers' (as when skipping non-trading days)
0 commit comments