Skip to content

Consistently use axs.flat instead of axs.flatten() #14079

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
Apr 29, 2019

Conversation

timhoffm
Copy link
Member

PR Summary

in fig, axs = subplots(2, 2) axs is a numpy array. The standard way to iterate over its elements is the iterator axs.flat. Currently the documentation used a mix of axs.flat and axs.flatten(). This PR changes this to consistently use axs.flat everywhere.

@timhoffm timhoffm added this to the v3.1.1 milestone Apr 29, 2019
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

postci

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

LGTM

@jklymak jklymak merged commit dc043e1 into matplotlib:master Apr 29, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 29, 2019
@timhoffm timhoffm deleted the subplots-flat branch April 29, 2019 21:27
@tacaswell tacaswell modified the milestones: v3.1.1, v3.1.0 Apr 29, 2019
tacaswell added a commit that referenced this pull request Apr 29, 2019
…079-on-v3.1.x

Backport PR #14079 on branch v3.1.x (Consistently use axs.flat instead of axs.flatten())
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.

4 participants