Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

how to extend the y-axis?

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

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

評価

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

調査の方向性

issue に示されている mpf.plot の呼び出しから始め、y-axis limits、margins、tight_layout の処理が alines にどのような影響を与えるかを調べます。fig と axlist を fig.suptitle と併せて確認し、上側の線がどこでクリップされているかを特定します。candle、volume、addplot のレイアウトを壊すことなく、プロットされた線が完全に表示されれば完了です。レポートでは source file も test も名前を挙げません。

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

説明

question

Perhaps the best way to explain this problem is by the picture below. As you can see, there are three blue lines drawn, but the top line is out of plot. How can I extend the y-axis on the graph so that the top line is fully visible?

mpf-problem margins

This code below created the plot:

fig, axlist = mpf.plot(data[start_date:end_date], figratio=(20,12),
    type='candle',
    alines=seq_of_seq_of_points,
    volume=True,
    tight_layout=True,
    style='yahoo',
    addplot=apd,
    returnfig=True)

fig.suptitle("SPY", y=1.05, fontsize=30, x=0.59)
主要言語
Python
スター
4.4k
フォーク
678
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

matplotlib/mplfinance のほかの issue

matplotlib/mplfinance の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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