Title: Twinning an axis resets tick visibility · Issue #15188 · matplotlib/matplotlib · GitHub
Open Graph Title: Twinning an axis resets tick visibility · Issue #15188 · matplotlib/matplotlib
X Title: Twinning an axis resets tick visibility · Issue #15188 · matplotlib/matplotlib
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 o...
Open Graph 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.majorTi...
X 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...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/15188
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Twinning an axis resets tick visibility","articleBody":"\r\n### Bug report\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nwith plt.rc_context({'ytick.left': False}):\r\n f, ax = plt.subplots()\r\n print(ax.yaxis.majorTicks[0].tick1line.get_visible())\r\n ax.twinx()\r\n print(ax.yaxis.majorTicks[0].tick1line.get_visible())\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```\r\nFalse\r\nTrue\r\n```\r\n\r\n**Expected outcome**\r\n\r\n```\r\nFalse\r\nFalse\r\n```\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: MacOS\r\n * Matplotlib version: 3.1.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MacOSX\r\n * Python version: 3.7.4\r\n * Jupyter version (if applicable): N/A\r\n * Other libraries: N/A","author":{"url":"https://github.com/mwaskom","@type":"Person","name":"mwaskom"},"datePublished":"2019-09-04T20:26:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/15188/matplotlib/issues/15188"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25c6bec5-20c6-1f65-6f14-e33b64927b14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9286:66EFD:1C07DEA:28D0775:6A54F6F8 |
| html-safe-nonce | 5b40467fb2b97e38780ea7d7d6cf2e3fd25ee11ea10a51017d7fb1572c92089d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjg2OjY2RUZEOjFDMDdERUE6MjhEMDc3NTo2QTU0RjZGOCIsInZpc2l0b3JfaWQiOiI0Njk2Mjc5NjUzMTIzNjg0MDg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1e85b55915cafce6f81c04259e34ff1e35e0955d42244c60a811234d7aeb3028 |
| hovercard-subject-tag | issue:489380650 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/15188/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4535390cff51b42fd06f2eedca78ccc16fc805722b84b6f23df4558660e57e7f/matplotlib/matplotlib/issues/15188 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4535390cff51b42fd06f2eedca78ccc16fc805722b84b6f23df4558660e57e7f/matplotlib/matplotlib/issues/15188 |
| og:image:alt | 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.majorTi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwaskom |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd26d3896747463b6bd56edd5e290edb595c3cbc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width