ipython / ipython/matplotlib-inline

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

未关闭
#13 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
31
派生
39
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。