Skip to content

Commit a469271

Browse files
Merge pull request #34 from amiaty/master
change marker validator to effectively let all necessary types through, and remove valid_markers
2 parents 00ee542 + 0b236d6 commit a469271

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/mplfinance/plotting.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,6 @@ def plot( data, **kwargs ):
464464

465465
def _valid_addplot_kwargs():
466466

467-
valid_markers = ['.', ',', 'o', 'v', '^', '<', '>', '1', '2', '3', '4', '8',
468-
's', 'p', '*', 'h', 'H', '+', 'x', 'D', 'd', '|', '_', 'P',
469-
'X', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 'None', None, ' ', '']
470-
471-
472467
valid_linestyles = ['-','solid','--','dashed','-.','dashdot','.','dotted',None,' ','']
473468

474469

@@ -480,7 +475,7 @@ def _valid_addplot_kwargs():
480475
'Validator' : lambda value: value in ['main','lower'] },
481476

482477
'marker' : { 'Default' : 'o',
483-
'Validator' : lambda value: value in valid_markers },
478+
'Validator' : lambda value: not isinstance(value,bool) },
484479

485480
'markersize' : { 'Default' : 18,
486481
'Validator' : lambda value: isinstance(value,(int,float)) },

0 commit comments

Comments
 (0)