Title: default value of `lines.dash_capstyle` · Issue #7174 · matplotlib/matplotlib · GitHub
Open Graph Title: default value of `lines.dash_capstyle` · Issue #7174 · matplotlib/matplotlib
X Title: default value of `lines.dash_capstyle` · Issue #7174 · matplotlib/matplotlib
Description: In #7087 @rougier asked about changing the default dash_capstyle to 'round'. This is what it would look like on top of the rest of the changes. import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from cycler impor...
Open Graph Description: In #7087 @rougier asked about changing the default dash_capstyle to 'round'. This is what it would look like on top of the rest of the changes. import numpy as np import matplotlib.pyplot as plt im...
X Description: In #7087 @rougier asked about changing the default dash_capstyle to 'round'. This is what it would look like on top of the rest of the changes. import numpy as np import matplotlib.pyplot a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"default value of `lines.dash_capstyle`","articleBody":"In #7087 @rougier asked about changing the default `dash_capstyle` to 'round'. This is what it would look like on top of the rest of the changes.\n\n\n\n``` python\n\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib as mpl\nfrom cycler import cycler\n\nfig, (ax1, ax2) = plt.subplots(1, 2, figsize=(6, 3))\n\nN = 15\n\nx = np.arange(N)\ny = np.ones_like(x)\n\nsty_cycle = (cycler('ls', ['--' ,':', '-.']) *\n cycler('lw', [None, 1, 2, 5]))\n\nclassic = {'lines.dash_capstyle': 'butt'}\n\nv2 = {'lines.dash_capstyle': 'round'}\n\ndef demo(ax, rcparams, title):\n ax.axis('off')\n ax.set_title(title)\n with mpl.rc_context(rc=rcparams):\n for j, sty in enumerate(sty_cycle):\n ax.plot(x, y + j, **sty)\n\ndemo(ax1, classic, 'v2.0')\ndemo(ax2, {}, 'v2.0 + rounded')\n```\n\nI am not a huge fan of the rounded caps, it is barely noticeable at small line widths and looks worse at large linewidths (IMO).\n\nIt would also require re-doing the dash patterns.\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2016-09-25T03:45:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/7174/matplotlib/issues/7174"}
| 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:6c2edb92-0478-0d06-a992-50944cead854 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBAA:34DD25:17B594E:201C8D8:6A546D44 |
| html-safe-nonce | a80fc60edfaefd0307e07044f468eebd6b569c8e34abd7cc96292ccfcb719b04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkFBOjM0REQyNToxN0I1OTRFOjIwMUM4RDg6NkE1NDZENDQiLCJ2aXNpdG9yX2lkIjoiMzU2MDIwMzk3OTc4OTcxNDYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9dca44fb5d75dcd47a87f5a3dd0c47fcaaed9467f4b938b00b47d3b61f48c45f |
| hovercard-subject-tag | issue:179065930 |
| 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/7174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/188463ef6fbaaf14ca6095e7501fdc5a81440c6c5ad35deb9acbd4d7c5bf43dc/matplotlib/matplotlib/issues/7174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/188463ef6fbaaf14ca6095e7501fdc5a81440c6c5ad35deb9acbd4d7c5bf43dc/matplotlib/matplotlib/issues/7174 |
| og:image:alt | In #7087 @rougier asked about changing the default dash_capstyle to 'round'. This is what it would look like on top of the rest of the changes. import numpy as np import matplotlib.pyplot as plt im... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width