-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Attempt to create a dynamically changing plot in console and notebook #9606
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
GUI: nbaggstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action
Milestone
Description
Bug report
Bug summary
Trying to have a dynamic plot that gets created and iteratively updated in a single function, both in the notebook, and in the console:
Python 3.6.1 |Anaconda custom (x86_64)| (default, May 11 2017, 13:04:09)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
Other software versions:
- notebook (5.1.0)
- ipywidgets (7.0.0)
- jupyter (1.0.0)
- jupyter-client (5.1.0)
- jupyter-console (5.1.0)
- jupyter-core (4.3.0)
Code for reproduction
In the notebook, this is preceded with %matplotlib notebook. Testing on the Mac for the console part. All one cell.
import matplotlib.pyplot as plt
import numpy as np
import time
fig = plt.figure()
fig.show()
for j in range(10):
plt.plot(range(0, j), [1/(i+1) for i in range(0, j)])
fig.canvas.draw()
time.sleep(.05) Actual outcome
- in the notebook, the figure size changes (initial is small, final fills area)
- in the console, the plot doesn't show up until all done plotting
Matplotlib version
- Operating system: MacOSX, Darwin 16.7
- Matplotlib version: matplotlib (2.0.2)
- Matplotlib backend: MacOSX
- Python version: 3.6
- Jupyter version (if applicable): 1.0.0
- Other libraries: (see above), anaconda install
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GUI: nbaggstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action