Title: extra minor-ticks on the colorbar when used with the extend option · Issue #11510 · matplotlib/matplotlib · GitHub
Open Graph Title: extra minor-ticks on the colorbar when used with the extend option · Issue #11510 · matplotlib/matplotlib
X Title: extra minor-ticks on the colorbar when used with the extend option · Issue #11510 · matplotlib/matplotlib
Description: Bug report Bug summary extra minor-ticks show up on the colorbar when it is extended (at either or both ends). Code for reproduction import matplotlib.pyplot as plt import numpy as np # Making yticks longer in length to highlight the iss...
Open Graph Description: Bug report Bug summary extra minor-ticks show up on the colorbar when it is extended (at either or both ends). Code for reproduction import matplotlib.pyplot as plt import numpy as np # Making ytic...
X Description: Bug report Bug summary extra minor-ticks show up on the colorbar when it is extended (at either or both ends). Code for reproduction import matplotlib.pyplot as plt import numpy as np # Making ytic...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11510
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"extra minor-ticks on the colorbar when used with the extend option","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nextra minor-ticks show up on the colorbar when it is extended (at either or both ends).\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n# Making yticks longer in length to highlight the issue\r\nplt.rcParams['ytick.major.size'] = 10\r\nplt.rcParams['ytick.minor.size'] = 4\r\n\r\n\r\nnp.random.seed(seed=12345)\r\nx = np.random.randn(20, 20)\r\nfig, ax = plt.subplots()\r\nim = ax.pcolormesh(x)\r\n\r\ncbar = fig.colorbar(im, extend='both')\r\ncbar.ax.minorticks_on()\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\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: MacOSX\r\n * Matplotlib version: 2.2.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): MacOSX\r\n * Python version: Python 3.6.5\r\n\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\nInstalled via anaconda (default channel)\r\n\r\n","author":{"url":"https://github.com/pharshalp","@type":"Person","name":"pharshalp"},"datePublished":"2018-06-26T03:10:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/11510/matplotlib/issues/11510"}
| 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:d65fadf4-e726-041a-8ec1-38767ce5d2b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8858:3C5EF4:E95BAD:1552D7C:6A56165C |
| html-safe-nonce | db2584a941f77d888e1bc3781218e060946725dec265b06adb9c06f5d33e16e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU4OjNDNUVGNDpFOTVCQUQ6MTU1MkQ3Qzo2QTU2MTY1QyIsInZpc2l0b3JfaWQiOiI3NzY5MjM0MDA1MzA5NTc5MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 308efe1149ca932085710a5c1d85cd031ddb76c05a153f89e7fb02efedc9e94b |
| hovercard-subject-tag | issue:335641873 |
| 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/11510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3018669dbaef4b02dae3ccbfd6fdd5482e9bd64d756406cf875bd7d31b000d38/matplotlib/matplotlib/issues/11510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3018669dbaef4b02dae3ccbfd6fdd5482e9bd64d756406cf875bd7d31b000d38/matplotlib/matplotlib/issues/11510 |
| og:image:alt | Bug report Bug summary extra minor-ticks show up on the colorbar when it is extended (at either or both ends). Code for reproduction import matplotlib.pyplot as plt import numpy as np # Making ytic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pharshalp |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | b76b9cc70d30da50674184c9c66c56423fd0b93c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width