santoshlite / Empyrial

An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎
https://empyrial.gitbook.io/empyrial/
MIT License
914 stars 124 forks source link

Graph styling #69

Closed rgleavenworth closed 2 years ago

rgleavenworth commented 2 years ago

Is there a way to override the default styling parameters used in your tearsheet? I understand that most of the styling is inherited from quantstats. Anyway you can suggest how to change things like facecolor, linewidth, etc?

santoshlite commented 2 years ago

Sorry for the (very) late reply.

For the moment, there are now ways to modify that with Empyrial. I checked Quantstats source code and it doesn't seem like it provides a lot of flexibility in terms of styling...

rgleavenworth commented 2 years ago

Yeah, I went through the qs code as well and the author has hardcoded the styling in the code. I'm going to create a branch and submit a pull request there to see if we can submit styling through a function call and will contact you if/once that is accepted.

santoshlite commented 2 years ago

Once you do it, tell me! I'll do the changes for sure ;)