Skip to content

Navigation Menu

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

calling imshow twice with different extents causes autoscaling to ignore the first image's extents. #19374

Copy link
Copy link
Open
@anntzer

Description

@anntzer
Issue body actions

Bug report

Bug summary

Per the title.

Code for reproduction

from pylab import *
t = np.random.random((10, 10, 4))
ax = plt.figure().add_subplot()
ax.imshow(t, extent=(0, 2, 0, 2))
ax.imshow(t, extent=(1, 3, 1, 3))
show()

Actual outcome

test

Expected outcome

test

Matplotlib version

  • Operating system: linux
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)): head
  • Matplotlib backend (print(matplotlib.get_backend())): agg
  • Python version: 39
  • Jupyter version (if applicable):
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No 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.