Title: margins does not handle bézier curves · Issue #7184 · matplotlib/matplotlib · GitHub
Open Graph Title: margins does not handle bézier curves · Issue #7184 · matplotlib/matplotlib
X Title: margins does not handle bézier curves · Issue #7184 · matplotlib/matplotlib
Description: 2.0b4, example modified from http://matplotlib.org/users/path_tutorial.html#bezier-example import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches verts = [ (0., 0.), # P0 (0.2, 1.), # P1 (1....
Open Graph Description: 2.0b4, example modified from http://matplotlib.org/users/path_tutorial.html#bezier-example import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches vert...
X Description: 2.0b4, example modified from http://matplotlib.org/users/path_tutorial.html#bezier-example import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches vert...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"margins does not handle bézier curves","articleBody":"2.0b4, example modified from http://matplotlib.org/users/path_tutorial.html#bezier-example\n\n```\nimport matplotlib.pyplot as plt\nfrom matplotlib.path import Path\nimport matplotlib.patches as patches\n\nverts = [\n (0., 0.), # P0\n (0.2, 1.), # P1\n (1., 0.8), # P2\n (0.8, 0.), # P3\n ]\n\ncodes = [Path.MOVETO,\n Path.CURVE4,\n Path.CURVE4,\n Path.CURVE4,\n ]\n\npath = Path(verts, codes)\n\nfig, axs = plt.subplots(2)\n\npatch = patches.PathPatch(path, facecolor='none', lw=2)\naxs[0].add_patch(patch)\nxs, ys = zip(*verts)\naxs[0].plot(xs, ys, 'x--', lw=2, color='black', ms=10)\n\npatch = patches.PathPatch(path, facecolor='none', lw=2)\naxs[1].add_patch(patch)\n\nplt.show()\n```\n\n\n\nNote how the bottom axes have their limits set as if using the positions of the bézier control points (on the unit square), with no margins.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-09-26T20:56:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/7184/matplotlib/issues/7184"}
| 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:035f5128-0b4e-28c1-97da-1f1ccd1e499c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB18:CB81E:51F97BC:726DFA2:6A50F7F7 |
| html-safe-nonce | cdb739a90487786b48e37143921814c4a33c018c20b06563db5daf965109f41f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjE4OkNCODFFOjUxRjk3QkM6NzI2REZBMjo2QTUwRjdGNyIsInZpc2l0b3JfaWQiOiIzODMzNzUzMzUxMzk0MjI4MjE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6bc7cd5895a45e26b3677ee5a7782ef82e396fbe1596e3fb5afa144bd67e3ad0 |
| hovercard-subject-tag | issue:179335140 |
| 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/7184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb2ba6a4888512daf193b74c2ef90b3a4a237370af964cab160375d23f81ef09/matplotlib/matplotlib/issues/7184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb2ba6a4888512daf193b74c2ef90b3a4a237370af964cab160375d23f81ef09/matplotlib/matplotlib/issues/7184 |
| og:image:alt | 2.0b4, example modified from http://matplotlib.org/users/path_tutorial.html#bezier-example import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches vert... |
| 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 | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width