Title: [Bug]: "top"-side ImageGrid colorbars draw their ticks on the wrong side · Issue #25876 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: "top"-side ImageGrid colorbars draw their ticks on the wrong side · Issue #25876 · matplotlib/matplotlib
X Title: [Bug]: "top"-side ImageGrid colorbars draw their ticks on the wrong side · Issue #25876 · matplotlib/matplotlib
Description: Bug summary Compare the colorbars at the top of the imagegrid in https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html and https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html (same example, but mpl3.4 vs 3.5...
Open Graph Description: Bug summary Compare the colorbars at the top of the imagegrid in https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html and https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_gr...
X Description: Bug summary Compare the colorbars at the top of the imagegrid in https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html and https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_gr...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25876
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: \"top\"-side ImageGrid colorbars draw their ticks on the wrong side","articleBody":"### Bug summary\n\nCompare the colorbars at the top of the imagegrid in https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html and https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html (same example, but mpl3.4 vs 3.5): the ticks have incorrectly moved from the top side of the colorbar to the bottom side (and the ticklabels are no longer suppressed by the toggle_label(False) call, but that's more or less a consequence of the first point, because toggle_label will try to hide the labels on the cbar_location=\"top\" side).\r\nThis is a regression that bisects to #20054.\n\n### Code for reproduction\n\n```python\n# Run galleries/examples/axes_grid1/demo_axes_grid.py or galleries/examples/axes_grid1/demo_axes_grid2.py\n```\n\n\n### Actual outcome\n\nhttps://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_grid.html\n\n### Expected outcome\n\nhttps://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html\n\n### Additional information\n\nObviously #20054 changed colorbar axes for the (much) better. We can either try to fix the problematic interaction between new-style colorbars and ImageGrid, or \"advantageously\" interpret the fact that no one reported this bug in the ~1.5y since the release of matplotlib 3.5 as a sign that ImageGrid sees very little use and perhaps deprecate it (it has a slightly idiosyncratic API anyways, and may be better replaced by compressed layout these days).\n\n### Operating system\n\nmacos\n\n### Matplotlib Version\n\n3.8.0.dev1020+gefd66d48fc\n\n### Matplotlib Backend\n\nmplcairo\n\n### Python version\n\n3.11\n\n### Jupyter version\n\nenosuchlib\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2023-05-12T22:21:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/25876/matplotlib/issues/25876"}
| 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:cfd19c9f-1a5d-d9df-0b82-79467a920b1b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B158:147377:13507E1:1A31E1C:6A521CD3 |
| html-safe-nonce | 7652ab02a909a7ad9a91cc795d5f83b1bfad6f52449c7221b6cb69f0978318e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU4OjE0NzM3NzoxMzUwN0UxOjFBMzFFMUM6NkE1MjFDRDMiLCJ2aXNpdG9yX2lkIjoiMjAyODc4NTc0MzE1ODE4OTI2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f069b7473e164802319859eca8c458de5a9a45905c28d2474bb20a1365091d29 |
| hovercard-subject-tag | issue:1708279881 |
| 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/25876/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d2d11a67bac6e455221b39cd8d9a5dc1f838193815e7e90608a91ee934fb4e9/matplotlib/matplotlib/issues/25876 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d2d11a67bac6e455221b39cd8d9a5dc1f838193815e7e90608a91ee934fb4e9/matplotlib/matplotlib/issues/25876 |
| og:image:alt | Bug summary Compare the colorbars at the top of the imagegrid in https://matplotlib.org/3.4.3/gallery/axes_grid1/demo_axes_grid.html and https://matplotlib.org/3.5.3/gallery/axes_grid1/demo_axes_gr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width