Title: Incorrect placement of Colorbar ticks using LogNorm · Issue #12155 · matplotlib/matplotlib · GitHub
Open Graph Title: Incorrect placement of Colorbar ticks using LogNorm · Issue #12155 · matplotlib/matplotlib
X Title: Incorrect placement of Colorbar ticks using LogNorm · Issue #12155 · matplotlib/matplotlib
Description: Bug report Bug summary After upgrading to Matplotlib v3.0.0, the tick marks on the colorbar are no longer placed correctly when using a matplotlib.colors.LogNorm normalization. Code for reproduction The code is embedded in a class define...
Open Graph Description: Bug report Bug summary After upgrading to Matplotlib v3.0.0, the tick marks on the colorbar are no longer placed correctly when using a matplotlib.colors.LogNorm normalization. Code for reproductio...
X Description: Bug report Bug summary After upgrading to Matplotlib v3.0.0, the tick marks on the colorbar are no longer placed correctly when using a matplotlib.colors.LogNorm normalization. Code for reproductio...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect placement of Colorbar ticks using LogNorm","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nAfter upgrading to Matplotlib v3.0.0, the tick marks on the colorbar are no longer placed correctly when using a matplotlib.colors.LogNorm normalization. \r\n\r\n**Code for reproduction**\r\n\r\nThe code is embedded in a class defined within the NeXpy application, but uses standard Matplotlib function calls. Here are the relevant extracted lines:\r\n\r\n```python\r\nfrom matplotlib.colors import LogNorm, Normalize, SymLogNorm\r\nfrom matplotlib.ticker import AutoLocator, LogLocator, ScalarFormatter\r\nfrom matplotlib.ticker import LogFormatterSciNotation as LogFormatter\r\n self.norm = LogNorm(self.vaxis.lo, self.vaxis.hi)\r\n self.locator = LogLocator()\r\n self.formatter = LogFormatter()\r\n self.image = ax.pcolormesh(x, y, self.v, cmap=self.cmap, **opts)\r\n self.image.set_norm(self.norm)\r\n self.colorbar = self.figure.colorbar(self.image, ax=ax, norm=self.norm)\r\n self.colorbar.locator = self.locator\r\n self.colorbar.formatter = self.formatter\r\n self.colorbar.update_normal(self.image)\r\n```\r\n\r\n**Actual outcome**\r\n\r\nIn Matplotlib v3.0.0, I get:\r\n\r\n\r\n**Expected outcome**\r\n\r\nIn Matplotlib v2.2.3, I get:\r\n\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Mac OS 10.12.6\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend: Qt5Agg\r\n * Python version: 3.6.5\r\n\r\nI got the same result when using conda to install v3.0.0 or pip to install the latest development version.","author":{"url":"https://github.com/rayosborn","@type":"Person","name":"rayosborn"},"datePublished":"2018-09-18T17:00:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/12155/matplotlib/issues/12155"}
| 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:0afad2f3-02d5-d15f-e406-57fa8a62863f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C8C:30BDED:AD96FD:EBC22B:6A56F8DB |
| html-safe-nonce | 74e4a903823d18dd4f6efd101989a4590ce9f9ee2c9d9fcab462d91579be3e44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzhDOjMwQkRFRDpBRDk2RkQ6RUJDMjJCOjZBNTZGOERCIiwidmlzaXRvcl9pZCI6IjM5MTUwNDA2NTgzNTI5NjE3NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1acb16089bae6663bcf2a6ddccf5ec3787e0852d66552bbd4953f1709d4cd976 |
| hovercard-subject-tag | issue:361397217 |
| 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/12155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc830a73494a5cf6b8d00a842fae0fddcdb6aa412346032052d123e8dd79e253/matplotlib/matplotlib/issues/12155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc830a73494a5cf6b8d00a842fae0fddcdb6aa412346032052d123e8dd79e253/matplotlib/matplotlib/issues/12155 |
| og:image:alt | Bug report Bug summary After upgrading to Matplotlib v3.0.0, the tick marks on the colorbar are no longer placed correctly when using a matplotlib.colors.LogNorm normalization. Code for reproductio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rayosborn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb29e5f807bd95e41196adfbc6d28f9af12d89830d8b684f3e871774ddff2fc |
| 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 | b056788a129fb0194b61f2ebb4c43f6a9f4dfd27 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width