matplotlib / matplotlib/ipympl

Implement needs_background metadata

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

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

enhancement
主要言語
Jupyter Notebook
スター
1.7k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

## Describe the issue

The matplotlib-inline backend provides the `needs_background` metadata which allows to force a light background under plot images to improve readability when using a JupyterLab dark theme. We should probably implement the same for the static image.

See https://github.com/ipython/matplotlib-inline/blob/541b26da2f49d0403994b91cb062e8c438920c44/matplotlib_inline/backend_inline.py#L226-L239

This will not work for the widget repr, but we could probably implement custom logic to mimick this behavior with the widget view.

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

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

はじめの一歩

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

調査の方向性

matplotlib_inline/backend_inline.py の 226-239 行にある参照先の実装を読み、その後 ipympl の静的画像パスと widget view を調べてください。静的画像に対する needs_background メタデータの動作を実装してください。この issue では、widget repr の動作には別途カスタムロジックが必要になる可能性があると記載されています。

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

評価

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

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

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