我找到了这个 mplfinance 库,它似乎是我需要的,但我不确定我是否可以按照我想要的方式进行定制。在我花几个小时研究这个图书馆之前,我只想确保我能做到。如果有人能给我举个例子,那将对我有很大帮助!
1 回答
You should be able to do something like that chart with mplfinance. I do recommend that you set aside one full hour of your time to go through the documentation. In particular, I recommend you focus, in this order, on the following:
The third item above has two parts. The styles tutorial will show you how you can get the colors you want, where you want them. And the individual plot customizations tutorial has a section that mentions fill_between
which you can use to accomplish the two-color plot face that you have drawn above.
If you have additional questions you can post them here (or under the issues section of the mplfinance repository).
full disclosure: I am the maintainer of the mplfinance package.