Skip to content

Twinning an axis resets tick visibility #15188

Closed as not planned
Closed as not planned
@mwaskom

Description

@mwaskom

Bug report

import matplotlib.pyplot as plt
with plt.rc_context({'ytick.left': False}):
    f, ax = plt.subplots()
    print(ax.yaxis.majorTicks[0].tick1line.get_visible())
    ax.twinx()
    print(ax.yaxis.majorTicks[0].tick1line.get_visible())

Actual outcome

False
True

Expected outcome

False
False

Matplotlib version

  • Operating system: MacOS
  • Matplotlib version: 3.1.1
  • Matplotlib backend (print(matplotlib.get_backend())): MacOSX
  • Python version: 3.7.4
  • Jupyter version (if applicable): N/A
  • Other libraries: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions