Skip to content

Use plt.subplots() #11580

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
Jul 5, 2018
Merged

Use plt.subplots() #11580

merged 1 commit into from
Jul 5, 2018

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jul 5, 2018

PR Summary

Replace many occurences of

fig = plt.figure()
ax = fig.add_subplot(111)

(and similar) with the more canonical fig, ax = plt.subplots()

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.

modulo ci

@tacaswell tacaswell added this to the v2.2.3 milestone Jul 5, 2018
@tacaswell tacaswell merged commit 90e30e4 into matplotlib:master Jul 5, 2018
@lumberbot-app
Copy link

lumberbot-app bot commented Jul 5, 2018

There seem to be a conflict, please backport manually

@timhoffm timhoffm deleted the subplots branch July 6, 2018 00:06
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Aug 4, 2018
DOC: Use plt.subplots()

Conflicts:
	lib/matplotlib/tests/test_backends_interactive.py
          - only backported the minimal change
	tutorials/advanced/transforms_tutorial.py
          - only backported the minimal change
	tutorials/text/pgf.py
          - only backported the minimal change
@tacaswell
Copy link
Member

backported to v2.2.x as 86a3bac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants