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]: tick_top and sharex do not work together #30219

Open
@carissableker

Description

@carissableker

Bug summary

I expectedtick_top to add ticks on the top of the uppermost subplot when usingsharex=True. However, it adds ticks to the lower subplot (as it would normally), making it incompatible with shared axes.

Code for reproduction

importmatplotlib.pyplotaspltfig,axes=plt.subplots(sharex=True,sharey=True,ncols=2,nrows=2)axes=axes.flatten()foraxinaxes:sc=ax.scatter(x=[0,1,5,3],y=[0,1,2,4],     )ax.xaxis.tick_top()ax.tick_params(axis='x',rotation=55)

Actual outcome

Image

Expected outcome

Image

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

3.8.2

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

conda

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