Title: bad autoscale_view() with long curved FancyArrowPatch · Issue #19723 · matplotlib/matplotlib · GitHub
Open Graph Title: bad autoscale_view() with long curved FancyArrowPatch · Issue #19723 · matplotlib/matplotlib
X Title: bad autoscale_view() with long curved FancyArrowPatch · Issue #19723 · matplotlib/matplotlib
Description: Bug report When using a very long FancyArrowPatch with connectionstyle="arc3", subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, but more extreme squashing can easily be obtained. Poss...
Open Graph Description: Bug report When using a very long FancyArrowPatch with connectionstyle="arc3", subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, but more extrem...
X Description: Bug report When using a very long FancyArrowPatch with connectionstyle="arc3", subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, b...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19723
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bad autoscale_view() with long curved FancyArrowPatch","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nWhen using a very long `FancyArrowPatch` with `connectionstyle=\"arc3\"`, subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, but more extreme squashing can easily be obtained. Possibly this is not limited to `FancyArrowPatch`?\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\n\r\nfap = matplotlib.patches.FancyArrowPatch(\r\n (10, 10),\r\n (20, 2e4),\r\n mutation_scale=50,\r\n connectionstyle=\"arc3,rad=0.3\",\r\n)\r\n\r\n_, ax = plt.subplots()\r\nax.add_patch(fap)\r\nax.set_title(f\"matplotlib {matplotlib.__version__}\")\r\nax.autoscale_view()\r\nax.figure.savefig(\"curved-arrow.png\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nThe axes view should span the drawn content. Any control point(s) required for the arc should be ignored.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Linux\r\n * Matplotlib version: 3.3.4\r\n * Matplotlib backend: Reproducible with at least `GTK3Agg` and `agg`.\r\n * Python version: 3.9\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\nMatplotlib installed via pip.","author":{"url":"https://github.com/grahamgower","@type":"Person","name":"grahamgower"},"datePublished":"2021-03-17T11:31:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/19723/matplotlib/issues/19723"}
| 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:fed7c5e8-32c1-20bc-804c-c4f2b463c068 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9152:D666E:3249F9:44EFFF:6A5142E3 |
| html-safe-nonce | b21e93e9ab03fb28df5f58d11ad5d12c571f9a1460de702c9746232df1fc123a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTUyOkQ2NjZFOjMyNDlGOTo0NEVGRkY6NkE1MTQyRTMiLCJ2aXNpdG9yX2lkIjoiNjExOTU5MzA3NDQxMjgzMTQ1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 67c69133afb3a5d4da33172da470b98d9df5c4faef77ea859aac9423a8a7507c |
| hovercard-subject-tag | issue:833675330 |
| 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/19723/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b75aea4b1d38090d3b4efd84023761b5621f2e46db3cf759637f1dc6ef2cfbc5/matplotlib/matplotlib/issues/19723 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b75aea4b1d38090d3b4efd84023761b5621f2e46db3cf759637f1dc6ef2cfbc5/matplotlib/matplotlib/issues/19723 |
| og:image:alt | Bug report When using a very long FancyArrowPatch with connectionstyle="arc3", subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, but more extrem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | grahamgower |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| 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 | b78565f6aa43cc5323c9935ec11b22cca7bb0a62 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width