Skip to content

Commit

Permalink
fixed sharex turnover plot bug
Browse files Browse the repository at this point in the history
  • Loading branch information
a-campbell committed Oct 16, 2015
1 parent 86405e9 commit f2eef22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyfolio/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def plot_turnover(returns, transactions, positions,

y_axis_formatter = FuncFormatter(utils.one_dec_places)
ax.yaxis.set_major_formatter(FuncFormatter(y_axis_formatter))

df_turnover = txn.get_turnover(transactions, positions)
df_turnover_by_month = df_turnover.resample("M")
df_turnover.plot(color='steelblue', alpha=1.0, lw=0.5, ax=ax, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion pyfolio/tears.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def create_txn_tear_sheet(returns, positions, transactions,
warnings.warn('Unable to generate turnover plot.', UserWarning)

if unadjusted_returns is not None:
ax_slippage_sweep = plt.subplot(gs[3, :], sharex=ax_turnover)
ax_slippage_sweep = plt.subplot(gs[3, :])
plotting.plot_slippage_sweep(unadjusted_returns,
transactions,
positions,
Expand Down

0 comments on commit f2eef22

Please sign in to comment.