Skip to content

Commit

Permalink
Fix lint issues kernc#195
Browse files Browse the repository at this point in the history
  • Loading branch information
zlpatel committed Jun 15, 2021
1 parent dea0663 commit 45be275
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backtesting/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ def __eq__(self, other):
if is_overlay:
ohlc_extreme_values[source_name] = arr
if is_histogram:
fig.vbar('index', BAR_WIDTH, source_name, source=source, legend_label=legend_label, color=color)
fig.vbar('index', BAR_WIDTH, source_name, source=source,
legend_label=legend_label, color=color)
elif is_scatter:
fig.scatter(
'index', source_name, source=source,
Expand All @@ -548,7 +549,8 @@ def __eq__(self, other):
line_width=1.3)
else:
if is_histogram:
r = fig.vbar('index', BAR_WIDTH, source_name, source=source, legend_label=LegendStr(legend_label), color=color)
r = fig.vbar('index', BAR_WIDTH, source_name, source=source,
legend_label=LegendStr(legend_label), color=color)
elif is_scatter:
r = fig.scatter(
'index', source_name, source=source,
Expand Down

0 comments on commit 45be275

Please sign in to comment.