Title: mpl_toolkits.axes_grid1.axes_divider.LocatableAxes has inconsistent ticks · Issue #7378 · matplotlib/matplotlib · GitHub
Open Graph Title: mpl_toolkits.axes_grid1.axes_divider.LocatableAxes has inconsistent ticks · Issue #7378 · matplotlib/matplotlib
X Title: mpl_toolkits.axes_grid1.axes_divider.LocatableAxes has inconsistent ticks · Issue #7378 · matplotlib/matplotlib
Description: I'm using latest v2.x (4ea9892) to build some documentation and several examples are a bit non-reproducible. It seems like this is usually triggered by the examples that use AxesGrid. I've drilled down to it being something weird with Lo...
Open Graph Description: I'm using latest v2.x (4ea9892) to build some documentation and several examples are a bit non-reproducible. It seems like this is usually triggered by the examples that use AxesGrid. I've drilled ...
X Description: I'm using latest v2.x (4ea9892) to build some documentation and several examples are a bit non-reproducible. It seems like this is usually triggered by the examples that use AxesGrid. I've ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7378
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mpl_toolkits.axes_grid1.axes_divider.LocatableAxes has inconsistent ticks","articleBody":"I'm using latest `v2.x` (4ea9892ea300a9773c1f2bf6e05b1c7771557248) to build some documentation and several examples are a bit non-reproducible. It seems like this is usually triggered by the examples that use `AxesGrid`. I've drilled down to it being something weird with `LocatableAxes`, which can be seen with this example:\r\n```python\r\nimport sys\r\n\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib.transforms import Bbox\r\nfrom mpl_toolkits.axes_grid1.axes_divider import LocatableAxes\r\nfrom mpl_toolkits.axes_grid1.mpl_axes import Axes\r\n\r\nAxesClass = LocatableAxes\r\n#AxesClass = Axes\r\n\r\nfig = plt.figure(1)\r\nax = AxesClass(fig, Bbox([[0.05, 0.05], [0.95, 0.95]]))\r\nfig.add_axes(ax)\r\n\r\nplt.savefig(sys.argv[1] + '.png')\r\n```\r\nIf you run two or three times and compare the images, the ticks in the corners will generally be slightly off, usually differing by one bit in the outermost pixel. If you uncomment the line above to use `Axes` instead, then there is no issue. If I understand correctly, `LocatableAxes` just adds the `LocatableAxesBase` mixin to `Axes`, which _appears_ to do nothing much by default. So I don't really understand why it breaks stuff.\r\n\r\nThis is probably related to the bugginess in #6759.","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2016-11-02T05:59:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7378/matplotlib/issues/7378"}
| 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:63b6eeaa-0c3d-522d-25c2-064d04cf46df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C26:1DC0B7:DCCB54:12E0B65:6A53AD1F |
| html-safe-nonce | e137ca2bc3deb4af912146f7c73e4df1beecb29cae87addcbd163f16efbb95e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzI2OjFEQzBCNzpEQ0NCNTQ6MTJFMEI2NTo2QTUzQUQxRiIsInZpc2l0b3JfaWQiOiIzMDE5NTM2MDUxNTM2NjM3MjE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 15828f3767ad0f77836da8c4f6279741d3f937714d1677a274744528e28d1e9c |
| hovercard-subject-tag | issue:186719127 |
| 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/7378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05d512876d688199a61298b8c17466558c7c07b2de3d30b6a1c70a725faef368/matplotlib/matplotlib/issues/7378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05d512876d688199a61298b8c17466558c7c07b2de3d30b6a1c70a725faef368/matplotlib/matplotlib/issues/7378 |
| og:image:alt | I'm using latest v2.x (4ea9892) to build some documentation and several examples are a bit non-reproducible. It seems like this is usually triggered by the examples that use AxesGrid. I've drilled ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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