ipython / ipython/matplotlib-inline

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

Offen
#13 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
31
Forks
39
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.