Skip to content

Pandas rendering minor ticks in matplotlib sublots with shared axes #10657

Closed
@mikepqr

Description

@mikepqr

When the plot method of a dataframe is passed an ax keyword to render to a matplotlib subplot, the minor ticks and their labels are rendered regardless of whether sharex|y=True. The major ticks/labels are correctly removed.

Here's a short notebook that reproduces the issue. Note that the minor ticks are included in the upper axes of the final figure.

I am 90% certain this is a regression, but I wasn't able to pin down which version of pandas or matplotlib prompted this bug. Nor was I able to figure out whether this was due to pandas or matplotlib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RegressionFunctionality that used to work in a prior pandas versionVisualizationplotting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions