Skip to content

Commit

Permalink
Remove unnecessary axis scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
gusgordon committed Nov 28, 2016
1 parent 0a6e2da commit 7d71adb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyfolio/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def plot_rolling_fama_french(
'High-Growth (HML)',
'Momentum (UMD)'],
loc=legend_loc)
ax.set_ylim((-2.0, 2.0))

y_axis_formatter = FuncFormatter(utils.two_dec_places)
ax.yaxis.set_major_formatter(FuncFormatter(y_axis_formatter))
Expand Down Expand Up @@ -861,7 +860,6 @@ def plot_rolling_sharpe(returns, rolling_window=APPROX_BDAYS_PER_MONTH * 6,
lw=3)
ax.axhline(0.0, color='black', linestyle='-', lw=3)

ax.set_ylim((-3.0, 6.0))
ax.set_ylabel('Sharpe ratio')
ax.set_xlabel('')
ax.legend(['Sharpe', 'Average'],
Expand Down

0 comments on commit 7d71adb

Please sign in to comment.