matplotlib / matplotlib/ipympl
ipympl for matplotlib not created through pyplot
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 1.7k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Is it possible to use ipympl starting from an arbitrary matplotlib figure? If yes, an example would be helpful. Thanks!
Use Case: I would like to use ipympl for SageMath plots. The later do have a method to
convert them to matplotlib figure. However the figure has not been created with the usual
pyplot workflow, and does not have a canvas setup.
In a jupyter notebook with the SageMath kernel (e.g. using the binder link from https://github.com/sagemath/sage-binder-env/ after installing ipympl with `sage -pip install ipyml`)
```
%matplotlib widget
p = plot(sin(x))
fig = p.matplotlib();
type(fig.canvas)
```
It could well be that SageMath is producing weird matplotlib figures though.
cc: @zerline
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
プロジェクトファイルやテストは指定されていません。まず、SageMath が生成した matplotlib の図を使って Jupyter notebook のスニペットを再現し、ipympl がそのための canvas を提供できるかを調べてください。このワークフローが機能するかどうかを確認し、最小限の例または制限事項を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- data-visualization, documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100