X Tutup
Skip to content

Unexpected HOME behavior after axis change #8016

@proximous

Description

@proximous

Bug report

Bug summary

HOME button returns axis to original axis even when hold(False) and new data is plotted. Home should restore the axis of the last plot.

Code for reproduction

plot(range(1000))

axis is 0:1000 (expected)
zoom in on some area of the plot.
press Home
axis returns to 0:1000 (expected)

hold(False)
plot(range(10))

axis is 0:10 (expected)
zoom in on some area of the plot.
press Home
axis returns to 0:1000 (unexpected...0:10 expected)

Matplotlib version

  • Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)
    Tested in virtual environment with current PIP version (matplotlib-2.0.0-1-cp35-cp35m-manylinux1_x86_64.whl) on Ubuntu 16.04, but also present on every prior version tested including default apt packages for Ubuntu 14.04 and Ubuntu 16.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup