matplotlib / matplotlib/ipympl

Ability to configure defaults for `Canvas`

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

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

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

説明

As shown in the example notebook, it is possible to configure the appearance of the Canvas widget by setting some attributes on it.
A lot of these attributes are settings that I would like to configure in the same way for all figures. It would be very convenint if there was some way to set the default values of these attributes before creating plots (similar to matplotlib.rcParams).

I tried changing the traitlet definitions directly (i.e. Canvas.header_visible.default_value = False), but apparently the traitlets cache the original default values somewhere and ignore the change to default_value.

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

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

はじめの一歩

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

調査の方向性

docs/examples/full-example.ipynb と issue で言及されている Canvas の traitlet 定義から始めます。header_visible などの属性が現在どのように設定されているかを確認し、そのうえでプロットが作成される前にデフォルト値を設定する方法を決定します。新しく作成された Figure が Canvas ごとの代入なしにそれらのデフォルト値を継承すれば完了です。

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

評価

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

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

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