Skip to content

Properly position markers in step plots. #11407

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

Merged
merged 1 commit into from
Jun 10, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 10, 2018

Closes #11031.

While it may appear costly to recache the path at every draw, this only
occurs when using step plots with markers (a relatively rare case) and
is still better than before the bug was introduced (#6497), when step plots used
to need to be recomputed at every draw, regardless of whether markers
are present.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

While it may appear costly to recache the path at every draw, this only
occurs when using step plots with markers (a relatively rare case) and
is still better than before the bug was introduced, when step plots used
to need to be recomputed at every draw, regardless of whether markers
are present.
@tacaswell tacaswell added this to the v2.2.3 milestone Jun 10, 2018
@tacaswell tacaswell merged commit 0d2c436 into matplotlib:master Jun 10, 2018
@lumberbot-app
Copy link

lumberbot-app bot commented Jun 10, 2018

There seem to be a conflict, please backport manually

@anntzer anntzer deleted the step-markers branch June 10, 2018 21:00
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Aug 4, 2018
FIX: Properly position markers in step plots.

Conflicts:
	lib/matplotlib/tests/test_lines.py
          - conflict due to adding imports around (removed on master)
            __future__ and six
tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull request Aug 5, 2018
This context manager was added to master in
690b213 via matplotlib#10314.  We do not want
to backport that entire commit, however the backport of matplotlib#11407
requires this context manger.

It is private and self contained to low-risk to backport
@tacaswell
Copy link
Member

backported to v2.2.x as 6133a7d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong x-position of marker with drawstyle='steps-xxx'
3 participants