Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug report
Bug summary
Settinganimated=True
during a plot call is supposed to make matplotlib artists not be drawn unless explicitly called.Source
Withplt.plot([1,2,3], animated=True)
, callingplt.show()
shows an empty axes.
However,plt.imshow([[1,2],[3,4], animated=True)
does show an image.
I observe this behaviour with both the qt5 and tk backends.
Have I misunderstood something? Or is this a discrepancy?
Code for reproduction
Here is a full example:
importmatplotlib.pyplotaspltimportnumpyasnpfig, (ax1,ax2)=plt.subplots(ncols=2)imdata=np.random.random((20,20))lndata=imdata[0]im=ax1.imshow(imdata,animated=True)(ln,)=ax2.plot(lndata,animated=True)plt.show()
Expected outcome
Two blank axes.
Matplotlib version
- Operating system: Win 10
- Matplotlib version: 3.1.3
- Matplotlib backend (
print(matplotlib.get_backend())
): Qt5Agg - Python version: 3.8
- Jupyter version (if applicable):
- Other libraries: