matplotlib / matplotlib/mplfinance

Multiple candles on same plot

オープン
#322 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement question
主要言語
Python
スター
4.4k
フォーク
678
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

I appreciate your work!
How would I plot multiple candles together side by side on the same figure?
I want to compare 1. original data, 2. modified data side by side.
So for each x value there will be 2 candles.

My first attempt was scale the width and maybe offset each candle to the side. But I could not find any option to do that.
Selection_006

It would be nice to have horizontal_offset keyword to place candles offset from the centre. Is what I want to achieve possible?
Hopefully I want to achieve the same with volume plot too.
If it is not possible, how about having two separate scale width for each? The candles will still be overlapped but at least they can be distinguished.

plot2 = fplt.make_addplot(data2,type='candle')
fplt.plot(data, type='candle', style=s, volume=True, addplot=plot2, scale_width_adjustment=dict(candle=0.5))

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue に示されている fplt.make_addplot と fplt.plot の呼び出しから始め、次に candle addplots と scale_width_adjustment がどのように処理されるかを追跡します。元の candle と変更後の candle を横に並べて表示する、サポートされた方法を定義して実装し、要求された volume の動作も含めて、両方のデータセットが視覚的に区別できることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
matplotlib, python
領域
data-visualization
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。