Skip to content

Commit

Permalink
single quotes and alignment for consistent code style
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGoldfarb committed Aug 1, 2023
1 parent f608812 commit 4928b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mplfinance/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def plot( data, **kwargs ):
ax = _addplot_columns(panid,panels,ydata,apdict,xdates,config,colcount)
_addplot_apply_supplements(ax,apdict,xdates)
colcount += 1
if apdict["label"]: # not supported for aptype == 'ohlc' or 'candle'
if apdict['label']: # not supported for aptype == 'ohlc' or 'candle'
contains_legend_label.append(ax)
for ax in set(contains_legend_label): # there might be duplicates
ax.legend()
Expand Down Expand Up @@ -1383,7 +1383,7 @@ def _valid_addplot_kwargs():
'fill_between': { 'Default' : None, # added by Wen
'Description' : " fill region",
'Validator' : _fill_between_validator },
"label" : { 'Default' : None,
'label' : { 'Default' : None,
'Description' : 'Label for the added plot. One per added plot.',
'Validator' : _label_validator },

Expand Down

0 comments on commit 4928b0f

Please sign in to comment.