pyfolio
pyfolio copied to clipboard
plot_annual_returns plot should scale according to length of backtest
long backtests result in unreadable plot

related to: https://github.com/quantopian/pyfolio/issues/304
The easiest way to accomplish this is to pass in a predefined ax object and set the size of the figure beforehand.
fig, ax = plt.subplots(figsize=(20,10))
plot_monthly_returns_heatmap(returns, ax)
However, I understand the desire for auto-scaling and am working on a bug fix now.