pyfolio icon indicating copy to clipboard operation
pyfolio copied to clipboard

plot_annual_returns plot should scale according to length of backtest

Open justinlent opened this issue 10 years ago • 1 comments

long backtests result in unreadable plot

image

related to: https://github.com/quantopian/pyfolio/issues/304

justinlent avatar May 21 '16 16:05 justinlent

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.

rlartigue avatar Jan 10 '21 20:01 rlartigue