Skip to content

Commit

Permalink
increased plotting resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Jun 30, 2021
1 parent 2729fbd commit 5757087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def gain_conv(x):
def plot_fills(df, fdf_, side: int = 0, bkr_thr=0.1):
plt.clf()
fdf = fdf_.set_index('timestamp')
dfc = df.iloc[::max(1, int(len(df) * 0.0001))]
dfc = df.iloc[::max(1, int(len(df) * 0.00001))]
dfc = dfc[(dfc.timestamp > fdf.index[0]) & (dfc.timestamp < fdf.index[-1])].set_index('timestamp')
dfc = dfc.loc[fdf.index[0]:fdf.index[-1]]
dfc.price.plot(style='y-')
Expand Down

0 comments on commit 5757087

Please sign in to comment.