Title: wrong x-position of marker with drawstyle='steps-xxx' · Issue #11031 · matplotlib/matplotlib · GitHub
Open Graph Title: wrong x-position of marker with drawstyle='steps-xxx' · Issue #11031 · matplotlib/matplotlib
X Title: wrong x-position of marker with drawstyle='steps-xxx' · Issue #11031 · matplotlib/matplotlib
Description: Bug report Hello, as discussed on matplotlib-devel, there is a unexpected change in Matplotlib 2.2 when plotting lines and markers (e.g. style 'D-') combined with drawstyle='steps-post' (steps-pre' and 'steps-mid' as well). Code for repr...
Open Graph Description: Bug report Hello, as discussed on matplotlib-devel, there is a unexpected change in Matplotlib 2.2 when plotting lines and markers (e.g. style 'D-') combined with drawstyle='steps-post' (steps-pre'...
X Description: Bug report Hello, as discussed on matplotlib-devel, there is a unexpected change in Matplotlib 2.2 when plotting lines and markers (e.g. style 'D-') combined with drawstyle='steps-post&...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11031
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wrong x-position of marker with drawstyle='steps-xxx'","articleBody":"### Bug report\r\n\r\nHello, as discussed on [matplotlib-devel](https://mail.python.org/pipermail/matplotlib-devel/2018-April/001041.html), there is a unexpected change in Matplotlib 2.2 when plotting lines and markers (e.g. style 'D-') combined with drawstyle='steps-post'` (`steps-pre' and 'steps-mid' as well).\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nx = np.linspace(0, 6, 7)\r\ny = np.sin(x)\r\nplt.plot(x, y, 'D-', drawstyle='steps-post')\r\n```\r\n\r\n**Actual outcome**\r\n\r\nIn Matplotlib 2.2.2, markers are drawn at each \"line break\". \r\n\r\n\r\n\r\nRunning the same script with `drawstyle='steps-mid'` yields markers at half-integer positions (except for those at the end)\r\n\r\n**Expected outcome**\r\n\r\nIn all previous Matplotlib versions, the marker was placed at the exact x-position of the input data (which is the left of each segment for `drawstyle='steps-post'`). I didn't do the bissection to know when the changed happen, but I suspect it's quite new (2.1 → 2.2 ?).\r\n\r\n**Matplotlib version**\r\n * Matplotlib version: 2.2.2\r\n * Python version: 3.6","author":{"url":"https://github.com/pierre-haessig","@type":"Person","name":"pierre-haessig"},"datePublished":"2018-04-12T07:17:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/11031/matplotlib/issues/11031"}
| 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:33dfd990-37bf-005c-6266-7400546e3f7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C53A:176010:2A54593:39A33FD:6A53BDE8 |
| html-safe-nonce | fc683639803b686f5e17b3a6a380c70288f88d717f49bee61a1a9876e4a4921d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTNBOjE3NjAxMDoyQTU0NTkzOjM5QTMzRkQ6NkE1M0JERTgiLCJ2aXNpdG9yX2lkIjoiNzIyODQ0NDk4OTA0MjQ0MTcwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21bab30e5e364231f0bc48645a8fa57786d37600b986d9b76ffdaeb24ffeca9a |
| hovercard-subject-tag | issue:313604232 |
| 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/11031/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c2ddb8eeaab141adf3575556699fb5bbc6d7be60f2013788d9c5eb2e23098d4/matplotlib/matplotlib/issues/11031 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c2ddb8eeaab141adf3575556699fb5bbc6d7be60f2013788d9c5eb2e23098d4/matplotlib/matplotlib/issues/11031 |
| og:image:alt | Bug report Hello, as discussed on matplotlib-devel, there is a unexpected change in Matplotlib 2.2 when plotting lines and markers (e.g. style 'D-') combined with drawstyle='steps-post' (steps-pre'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pierre-haessig |
| 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