Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[Bug]: Autoscale not synced between shared axes when interactively zooming #30747

Open
@lukas-lang

Description

@lukas-lang

Bug summary

When creating axes with sharex/sharey turned on and manually zooming into one of them,autoscale_on is not turned off for the other one

Code for reproduction

importmatplotlib.pyplotaspltplt.figure()ax1=plt.subplot(1,2,1)ax1.plot([1,2,3,4])ax2=plt.subplot(1,2,2)ax2.sharey(ax1)ax2.plot([4,3,2,1])plt.show()# manually zoom the y-axis on either the left or right plotax1.autoscale()ax2.autoscale()plt.draw()

Actual outcome

The axes are reset, even though autoscale should be disabled in the vertical.

Expected outcome

The axis should not be autoscaled, since I manually zoomed it. If you useax1.set_ylim(2,3), it disables autoscaling for both y axes, as expected. It's just the interactive zooming that doesn't.

Additional information

No response

Operating system

No response

Matplotlib Version

3.10.6

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

None

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp