-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix collection offsets #20717
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
Fix collection offsets #20717
Conversation
d86465a
to
c09ac03
Compare
This should be signed off on by @anntzer as I want to make sure this is not putting back something we removed recently. |
@tacaswell If you are specifically worried about #13696: no, this PR is not doing anything like that. |
This fixes a regression from matplotlib#20717 in networkx (Fixes matplotlib#21517), but we'll go forward with the change in a later release to give them time to fix it.
This fixes a regression from matplotlib#20717 in networkx (Fixes matplotlib#21517), but we'll go forward with the change in a later release to give them time to fix it.
PR Summary
Made some suggested changes related to issue #20698.
Collection._uniform_offsets
andCollection._offsets
, removed the former, kept the latter. Any function dependent on this variable was removed.Collection._offsetsNone
, replaced with a check if offsets were non-zero where used.Collection.set_offset_transform()
.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).I did add
Collection.set_offset_transform()
, but this isn't really a new feature, since it can already be set during initialization, so I'm not sure if/how it should be documented. I can add a mention if necessary.Update 2021-07-23 09:47:
Artist.set_transform()
toCollection.set_offset_transform()
to be consistent.