Title: Allow turning off minorticks for Colorbar with LogNorm? · Issue #13257 · matplotlib/matplotlib · GitHub
Open Graph Title: Allow turning off minorticks for Colorbar with LogNorm? · Issue #13257 · matplotlib/matplotlib
X Title: Allow turning off minorticks for Colorbar with LogNorm? · Issue #13257 · matplotlib/matplotlib
Description: Summary MPL 3 introduces minorticks on Colorbar. These are enabled by default for LogNorm. If the user sets custom tick marks for LogNorm, the minor ticks become confusing in my opinion. Example fig, ax = plt.subplots() data = np.clip(ra...
Open Graph Description: Summary MPL 3 introduces minorticks on Colorbar. These are enabled by default for LogNorm. If the user sets custom tick marks for LogNorm, the minor ticks become confusing in my opinion. Example fi...
X Description: Summary MPL 3 introduces minorticks on Colorbar. These are enabled by default for LogNorm. If the user sets custom tick marks for LogNorm, the minor ticks become confusing in my opinion. Example fi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13257
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow turning off minorticks for Colorbar with LogNorm?","articleBody":"\r\n**Summary** \r\n\r\nMPL 3 introduces minorticks on Colorbar. These are enabled by default for LogNorm.\r\n\r\nIf the user sets custom tick marks for LogNorm, the minor ticks become confusing in my opinion. \r\n\r\n**Example**\r\n\r\n```python\r\n\r\nfig, ax = plt.subplots()\r\n\r\ndata = np.clip(randn(250, 250)*1000, 0, 1000)\r\n\r\ncax = ax.imshow(data, norm=mpl.colors.LogNorm(vmin=1, vmax=1000))\r\ncbar = fig.colorbar(cax, format='%d')\r\ncbar.set_ticks([5, 50, 500])\r\n```\r\n\r\nWhich produces,\r\n\r\n\r\n\r\n**Discussion**\r\n\r\nThere is already the method ``Colorbar.minorticks_off``, however it has a check that if the axis is log, then do nothing.\r\n\r\n**Request**\r\n\r\nThe minor tickmarks add confusion here in my opinion. Can we have the option to turn them off via the existing ``Colorbar.minorticks_off``?\r\n\r\n","author":{"url":"https://github.com/LevN0","@type":"Person","name":"LevN0"},"datePublished":"2019-01-21T22:03:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/13257/matplotlib/issues/13257"}
| 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:76181a0c-3931-1263-132a-7919e2e84054 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B13A:29F49A:7FD894:AD7F32:6A569E1D |
| html-safe-nonce | 973c6bab2320803937cb9ae961658e392cf7b7a3a15edc5ef3f873f47cd916a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTNBOjI5RjQ5QTo3RkQ4OTQ6QUQ3RjMyOjZBNTY5RTFEIiwidmlzaXRvcl9pZCI6IjQzNjA0NjM5MzQxNDAzNTgxNzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 141d94ce362c68f6399cd93307c1098a443f26f7f06eab68911718ba3e06ba9a |
| hovercard-subject-tag | issue:401524796 |
| 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/13257/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df8a9c8269e0d10e2206615545f4e6358195fb439496714d2a28b2b5ff69a617/matplotlib/matplotlib/issues/13257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df8a9c8269e0d10e2206615545f4e6358195fb439496714d2a28b2b5ff69a617/matplotlib/matplotlib/issues/13257 |
| og:image:alt | Summary MPL 3 introduces minorticks on Colorbar. These are enabled by default for LogNorm. If the user sets custom tick marks for LogNorm, the minor ticks become confusing in my opinion. Example fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LevN0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 647a25f437e2f54eccdd162bd007c8ae70f4235c4125dba0f4518747cc8b9615 |
| 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 | 05adb86a60ce3d701e556eded3ab26300ec6bcc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width