-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
wrong x-position of marker with drawstyle='steps-xxx' #11031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milestone
Comments
Something like
fixes the issue, but that's pretty horrible from a performance point of view. Don't have the time to turn this into a proper PR right now. |
6 tasks
great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 reproduction
Actual outcome
In Matplotlib 2.2.2, markers are drawn at each "line break".
Running the same script with
drawstyle='steps-mid'
yields markers at half-integer positions (except for those at the end)Expected outcome
In 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 ?).Matplotlib version
The text was updated successfully, but these errors were encountered: