Closed voigtstefan closed 2 months ago
https://www.tidy-finance.org/python/univariate-portfolio-sorts.html#fig-703 is wrong. Should be (not tested)
plot_beta_longshort_year = ( ggplot(beta_longshort_year, aes(x="year", y="value-1", fill="name")) + geom_col(position='dodge') + facet_wrap("~name", ncol=1) + labs(x="", y="", title="Annual returns of beta portfolios") + scale_color_discrete(guide=False) + scale_y_continuous(labels=percent_format()) + theme(legend_position="none") ) plot_beta_longshort_year.draw()
Was a follow-up of issue #116 and now fixed.
https://www.tidy-finance.org/python/univariate-portfolio-sorts.html#fig-703 is wrong. Should be (not tested)
plot_beta_longshort_year = ( ggplot(beta_longshort_year, aes(x="year", y="value-1", fill="name")) + geom_col(position='dodge') + facet_wrap("~name", ncol=1) + labs(x="", y="", title="Annual returns of beta portfolios") + scale_color_discrete(guide=False) + scale_y_continuous(labels=percent_format()) + theme(legend_position="none") ) plot_beta_longshort_year.draw()