Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Ignore closepoly vertices in _update_patch_limits.#19159
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
tol = 16*sys.float_info.epsilon | ||
ax.add_patch(mpatches.Wedge((0, -1), 1.05, 60, 120, 0.1)) | ||
bounds = ax.dataLim.bounds | ||
bot = 1.9*math.sin(15*math.pi/180)**2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Just use numpy for these rather than importingmath
? You may also want to look atnp.testing.assert_allclose
rather than writing your own tolerance.
Did you mean to close this? |
Likely made obsolete by#19088... |
PR Summary
This PR removes CLOSEPOLY vertices from the list of vertices used to find the data limits in _update_patch_limits.
Fixes#19078.
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).