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

difference in size between saved plot and fig

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
matplotlib, python

調査の方向性

figsize (9,4) を使用してプロットを再現し、まず保存してから、returnfig を指定したバッファーを通じて取得します。報告されたサイズ (365, 801, 1) と (400, 900, 1) を含め、結果の寸法と余白を比較します。バッファーの結果が、追加された余白なしで保存したプロットと一致すれば完了です。

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

説明

question

I do not understand why plots differ in terms of size and how they look when I try to save them or returnfig.

I generate plots of figsize (9,4) when I save them they look great, with a tight layout, no margins and axes excellent! But I need these plots again so it would be better to use a buffer instead. However, when I use the buffer resulting plot has a different size and added margins on one side.

The saved plot has size (365, 801, 1) while plot from the buffer (400, 900, 1).

I appreciate any suggestions how to use buffer but without adding margins.
Thank you

主要言語
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 を短くまとめたダイジェスト。