Skip to content

Commit 4928b0f

Browse files
single quotes and alignment for consistent code style
1 parent f608812 commit 4928b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mplfinance/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def plot( data, **kwargs ):
783783
ax = _addplot_columns(panid,panels,ydata,apdict,xdates,config,colcount)
784784
_addplot_apply_supplements(ax,apdict,xdates)
785785
colcount += 1
786-
if apdict["label"]: # not supported for aptype == 'ohlc' or 'candle'
786+
if apdict['label']: # not supported for aptype == 'ohlc' or 'candle'
787787
contains_legend_label.append(ax)
788788
for ax in set(contains_legend_label): # there might be duplicates
789789
ax.legend()
@@ -1383,7 +1383,7 @@ def _valid_addplot_kwargs():
13831383
'fill_between': { 'Default' : None, # added by Wen
13841384
'Description' : " fill region",
13851385
'Validator' : _fill_between_validator },
1386-
"label" : { 'Default' : None,
1386+
'label' : { 'Default' : None,
13871387
'Description' : 'Label for the added plot. One per added plot.',
13881388
'Validator' : _label_validator },
13891389

0 commit comments

Comments
 (0)