Title: Log Colorbar minorticks_off reverted if ticks set... · Issue #13339 · matplotlib/matplotlib · GitHub
Open Graph Title: Log Colorbar minorticks_off reverted if ticks set... · Issue #13339 · matplotlib/matplotlib
X Title: Log Colorbar minorticks_off reverted if ticks set... · Issue #13339 · matplotlib/matplotlib
Description: Posted by @LevN0 Apologies if not the right place. This PR has the following side effect: fig, ax = plt.subplots() data = np.clip(randn(250, 250)*1000, 0, 1000) cax = ax.imshow(data, norm=mpl.colors.LogNorm(vmin=1, vmax=1000)) cbar = fig...
Open Graph Description: Posted by @LevN0 Apologies if not the right place. This PR has the following side effect: fig, ax = plt.subplots() data = np.clip(randn(250, 250)*1000, 0, 1000) cax = ax.imshow(data, norm=mpl.color...
X Description: Posted by @LevN0 Apologies if not the right place. This PR has the following side effect: fig, ax = plt.subplots() data = np.clip(randn(250, 250)*1000, 0, 1000) cax = ax.imshow(data, norm=mpl.color...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13339
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Log Colorbar minorticks_off reverted if ticks set...","articleBody":"Posted by @LevN0\r\n\r\nApologies if not the right place. This PR has the following side effect:\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\n\r\ncbar.minorticks_off()\r\ncbar.set_ticks([5, 10, 100])\r\n\r\nplt.show()\r\n```\r\n\r\nPrior to this PR, minor ticks would remain off after ``set_ticks`` when they had been turned off. After this PR, they come back on.\r\n\r\n_Originally posted by @LevN0 in https://github.com/matplotlib/matplotlib/pull/12909#issuecomment-459566413_","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2019-02-01T01:44:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/13339/matplotlib/issues/13339"}
| 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:ffe0dba3-9ee4-73d3-c7d5-1b931080c472 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDC2:217CF9:1685E63:1E5EE83:6A53BA1C |
| html-safe-nonce | 7c67abf36903a13a26672372f500007add3867779bb6ccc3f6e262865de37359 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREMyOjIxN0NGOToxNjg1RTYzOjFFNUVFODM6NkE1M0JBMUMiLCJ2aXNpdG9yX2lkIjoiNDUzMTA2MzgwNjExODU3NDYyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 609b983aaf35693bf13848960f436875291b52cae8bcb8ffd7ce43b4e735e472 |
| hovercard-subject-tag | issue:405516987 |
| 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/13339/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cda87f0480390cf2f2075c82bb47d11c139463d5d94b945d03dc97e32ec4e5bf/matplotlib/matplotlib/issues/13339 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cda87f0480390cf2f2075c82bb47d11c139463d5d94b945d03dc97e32ec4e5bf/matplotlib/matplotlib/issues/13339 |
| og:image:alt | Posted by @LevN0 Apologies if not the right place. This PR has the following side effect: fig, ax = plt.subplots() data = np.clip(randn(250, 250)*1000, 0, 1000) cax = ax.imshow(data, norm=mpl.color... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width