Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

clf synonym clear does not support keep_observers #8620

Copy link
Copy link
Closed
@mscuthbert

Description

@mscuthbert
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.