8000 Wedge not honouring specified angular range by mdboom · Pull Request #3298 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Wedge not honouring specified angular range #3298

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
Oct 19, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix #3298. Wedge's shouldn't special case the "round the horn"
  • Loading branch information
mdboom committed Jul 28, 2014
commit ec2aff46351752ed1f546d5ccd99e64e17fb9ce0
4 changes: 1 addition & 3 deletions lib/matplotlib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def circle(cls, center=(0., 0.), radius=1., readonly=False):
MAGIC45 = np.sqrt((MAGIC*MAGIC) / 2.0)

vertices = np.array([[0.0, -1.0],

[MAGIC, -1.0],
[SQRTHALF-MAGIC45, -SQRTHALF-MAGIC45],
[SQRTHALF, -SQRTHALF],
Expand Down Expand Up @@ -832,8 +832,6 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
eta1 = np.arctan2(np.sin(theta1), np.cos(theta1))
eta2 = np.arctan2(np.sin(theta2), np.cos(theta2))
eta2 -= twopi * np.floor((eta2 - eta1) / twopi)
if (theta2 - theta1 > np.pi) and (eta2 - eta1 < np.pi):
eta2 += twopi

# number of curve segments to make
if n is None:
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
378 changes: 378 additions & 0 deletions lib/matplotlib/tests/baseline_images/test_patches/wedge_range.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
0