Closed
Description
Bug report
Bug summary
The clear()
method on a Figure should be a synonym for clf()
but it does not support the keep_observers argument.
Code for reproduction
fig = plt.figure()
fig.clf(keep_observers=True)
fig = plt.figure()
fig.clear(keep_observers=True)
Actual outcome
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-23-6f57c5667d07> in <module>()
----> 1 fig.clear(keep_observers=True)
TypeError: clear() got an unexpected keyword argument 'keep_observers'
Expected outcome
The two synonyms should work identically
Matplotlib version
2.0.0, but confirmed in latest code.
- Operating System:
- Matplotlib Version:
- Python Version:
- Jupyter Version (if applicable):
- Other Libraries:
Metadata
Metadata
Assignees
Labels
No labels