Closed as not planned
Description
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