Skip to content

Fix Bezier degree elevation formula in backend_cairo. #12795

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
Nov 19, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 12, 2018

The quad_bezier example would previously fail under the cairo backend;
this patch fixes it.

Closes #12794.

The broken implementation went in in 3.0 so milestoning as 3.0.x.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 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

The quad_bezier example would previously fail under the cairo backend;
this patch fixes it.
@timhoffm
Copy link
Member

Can you please add a testcase, or at least post some example code so that I can check that the patch is working without having to dig into the details?

@anntzer
Copy link
Contributor Author

anntzer commented Nov 17, 2018

You can run the examples/shapes_and_collections/quad_bezier example under the qt5cairo (or some other foocairo) backend; it would fail as of master but succeed (same plot as fooagg) with this PR.

@jklymak jklymak merged commit 936855c into matplotlib:master Nov 19, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 19, 2018
@anntzer anntzer deleted the cairo-degree-elevation branch November 19, 2018 17:52
QuLogic added a commit that referenced this pull request Nov 27, 2018
…795-on-v3.0.x

Backport PR #12795 on branch v3.0.x (Fix Bezier degree elevation formula in backend_cairo.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: TypeError in cairo backend at plt.savefig
3 participants