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

difference in plt.gca() behaviour between inline and notebook backends

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

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

評価

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

調査の方向性

3D 軸を作成する notebook セルに続けて plt.gca() を使用するセルを配置し、inline と notebook の両方のバックエンドでレポートを再現します。IPython kernel を介して実行したときの現在のプロットの挙動を比較します。両方のバックエンドがセル境界をまたいで現在のプロットを一貫して処理できれば完了です。

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

説明

I have one notebook cell that creates a 3D axes, which I want to plot into in the next cell.

With the inline backend

Screen Shot 2022-01-26 at 3 18 55 pm

we see that the "current plot" has been forgotten, and plt.gca() creates a new 2D plot.

With the notebook backend

The behaviour is different

Screen Shot 2022-01-26 at 3 23 57 pm

and plt.gca() remembers the 3D plot across the cell boundaries.

Expected behaviour

The same in both cases, ideally the remembering the current plot across the cell boundary. I'm not sure which behaviour is "correct" but the difference is a problem when I'm running code in an ipython kernel from a client.

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

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

ipython/matplotlib-inline のほかの issue

ipython/matplotlib-inline の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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