8000 Shorten axes_grid1 inset_locator code. by anntzer · Pull Request #26091 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Shorten axes_grid1 inset_locator code. #26091

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 8, 2023
Merged

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Jun 8, 2023

PR summary

PR checklist

_add_inset_axes(parent_axes, inset_axes)

return inset_axes
kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either

Suggested change
kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),
axes_kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),

to match the name in the signature; or inline into the function call

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweaked to something in that spirit.

_add_inset_axes(parent_axes, inset_axes)

return inset_axes
kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),
axes_ kwargs = {**(axes_kwargs if axes_kwargs is not None else {}),

As above

@tacaswell tacaswell added this to the v3.8.0 milestone Jun 8, 2023
@tacaswell tacaswell merged commit b49cd20 into matplotlib:main Jun 8, 2023
@anntzer anntzer deleted the ail branch June 8, 2023 18:30
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.

3 participants
0