0

我不确定哪个库最适合创建这样的东西 在此处输入图像描述

我找到了这个 mplfinance 库,它似乎是我需要的,但我不确定我是否可以按照我想要的方式进行定制。在我花几个小时研究这个图书馆之前,我只想确保我能做到。如果有人能给我举个例子,那将对我有很大帮助!

4

1 回答 1

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:

  1. Basic Usage
  2. Adding Your Own Technical Studies to Plots
  3. Customizing the Appearance of Plots

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.

于 2021-10-15T11:15:41.863 回答