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

Navigation does not work after figure.clf() #9730

Copy link
Copy link
Closed
@awacha

Description

@awacha
Issue body actions

Bug report

Bug summary

Navigation in the zoom stack using the Home, Forward, Backward buttons on the toolbar does not work after the figure is cleared with clf().

Code for reproduction

plt.plot([1,2,3])
plt.clf()
plt.plot([1,2,3])
# now click the Zoom button and try to zoom in/out on the figure. Then press Home, Forward or Back buttons on the navigation toolbar: nothing happens.

Actual outcome

The Home, Forward and Back buttons on the toolbar do not work: the zoom does not change as expected.

Expected outcome

Stepping forward and backward in the zoom stack should work as expected when pressing the navigation buttons.

Matplotlib version

  • Operating system: Linux 64
  • Matplotlib version: v2.0.2, v2.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): tried Qt5 and Tk, possibly all others are affected
  • Python version: 3.6
  • Jupyter version (if applicable): -
  • Other libraries: -

I use conda, python3.6 and matplotlib (v2.0.2) from the default channel and matplotlib (v2.1.0) from conda-forge.

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.