Title: label1On set to true when axis.tick_params(axis='both', which='major', length=5) · Issue #13223 · matplotlib/matplotlib · GitHub
Open Graph Title: label1On set to true when axis.tick_params(axis='both', which='major', length=5) · Issue #13223 · matplotlib/matplotlib
X Title: label1On set to true when axis.tick_params(axis='both', which='major', length=5) · Issue #13223 · matplotlib/matplotlib
Description: Bug report Bug summary I have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all MajorTick members after return. Code for re...
Open Graph Description: Bug report Bug summary I have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all Maj...
X Description: Bug report Bug summary I have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all Maj...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13223
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"label1On set to true when axis.tick_params(axis='both', which='major', length=5)","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nI have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all MajorTick members after return.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nmajor_ticks = axis.xaxis.get_major_ticks()\r\n if len(major_ticks) \u003e 10:\r\n for i, tick in enumerate(major_ticks):\r\n if (i % 2) == 1:\r\n tick.label1On = False\r\nlogger.info(\"the value of label1O is %r\", axis.xaxis.majorTicks[1].label1On)\r\naxis.tick_params(axis='both', which='major', length=5)\r\nlogger.info(\"the value of label1O is %r\", axis.xaxis.majorTicks[1].label1On)\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```\r\n2019-01-18 16:42:28,509 - unavco.plotter.posfile - INFO - the value of label1O is False\r\n2019-01-18 16:42:36,626 - unavco.plotter.posfile - INFO - the value of label1O is True\r\n\r\n```\r\n\r\n**Expected outcome**\r\n\r\nI expected the value of label1On to not change.\r\nUse to work with version 1.2.0 and python 2.7\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: Mac OS High Sierra\r\n * Matplotlib version: 3.0.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MacOSX\r\n * Python version: 3.7\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\nyum install after install python 3.6\r\n\r\n\r\n","author":{"url":"https://github.com/dertz","@type":"Person","name":"dertz"},"datePublished":"2019-01-19T00:01:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/13223/matplotlib/issues/13223"}
| 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:08580e03-9ea0-05ba-3a93-71174e38d52d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2AA:1F25D0:13368EC:19FCE93:6A557BB5 |
| html-safe-nonce | 7d00569f3814b4cac07629ef0e27c31c271291d1cdeca7c85d7ff88b3e2ee3d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkFBOjFGMjVEMDoxMzM2OEVDOjE5RkNFOTM6NkE1NTdCQjUiLCJ2aXNpdG9yX2lkIjoiNTMwOTY1NDI3OTI0MTY5NDEzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 09308ed9a5a466fed0f3213e4b731d205fba47198ef6dd0207786e16a2d2846e |
| hovercard-subject-tag | issue:400933038 |
| 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/13223/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b257df2122908b308a0be800c526fd919fd13c89bc86788a8e4460cc1cbc0632/matplotlib/matplotlib/issues/13223 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b257df2122908b308a0be800c526fd919fd13c89bc86788a8e4460cc1cbc0632/matplotlib/matplotlib/issues/13223 |
| og:image:alt | Bug report Bug summary I have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all Maj... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dertz |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 617ea94e2807dc3052601c560530bb3f8259bc9a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width