default savefig format
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- matplotlib, python
- 領域
- testing-qa
調査の方向性
pytest_mpl/plugin.py の 419~421 行付近にあるリンク先の savefig 呼び出しから始め、次に savefig_kwargs が marker デコレーターからどのように渡されるかを追跡します。メモリ内バッファがどのように扱われるかを確認し、デフォルトの形式が PNG であり、呼び出し元が指定した形式は変更されないことを検証します。
索引モデルが issue の本文から書いたものです。
説明
In the process of penning #150, I noticed that when capturing the test image to an io.Bytes in-memory buffer:
That the format kwarg to savefig isn't used.
Would you be adverse to defaulting to format='png', particularly when writing to a buffer, as (from what I understand) matplotlib will default to the rcParams to select the file-format to save to the buffer for the image, and this could be a source confusion/issues for hashing repeatability for developers when testing.
i.e., what I'm proposing is that a format='png' is injected into the savefig_kwargs, iff not specified by the caller as a kwarg option in the marker decorator.
- 主要言語
- Python
- スター
- 274
- フォーク
- 53
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matplotlib/pytest-mpl のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
matplotlib/pytest-mpl#264 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
matplotlib/pytest-mpl#263 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
matplotlib/pytest-mpl#262 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
matplotlib/pytest-mpl#261 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
matplotlib/pytest-mpl#257 · コメント 2 件 ·
matplotlib/pytest-mpl の issue をすべて見る
似ている issue
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线オープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
vllm-project/vllm-ascend#24429 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
simnJS/AnyPS5#735 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
nq-rdl/agent-extensions#623 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vortex-data/vortex#12633 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#7955 ·
メンテナーはふだん 1 日以内に返信