tidy-finance / website

This repository hosts the source code for the website tidy-finance.org
https://tidy-finance.org
Other
82 stars 47 forks source link

Wrong axis plot in beta portfolio figure (python version) #119

Closed voigtstefan closed 2 months ago

voigtstefan commented 3 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()

voigtstefan commented 2 months ago

Was a follow-up of issue #116 and now fixed.