Skip to content

Ensure figsize is positive finite - #13859

Merged
anntzer merged 1 commit into
matplotlib:masterfrom
timhoffm:positive-figsize
Apr 4, 2019
Merged

anntzer merged 1 commit into
matplotlib:masterfrom
timhoffm:positive-figsize

Conversation

@timhoffm

@timhoffm timhoffm commented Apr 3, 2019

Copy link
Copy Markdown
Member

PR Summary

Fixes #13857. We were only checking for finite figsize. Changed that to positive finite.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

@WeatherGod WeatherGod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a style fix. Otherwise, looks good.

fig.set_size_inches(1, np.nan)
fig.set_size_inches(width, height)

def test_invalid_figure_add_axes():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need two blank lines here, which is what travis is failing on.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Style fixed.

@timhoffm
timhoffm requested a review from WeatherGod April 4, 2019 00:20
@tacaswell tacaswell added this to the v3.2.0 milestone Apr 4, 2019
@timhoffm

timhoffm commented Apr 4, 2019

Copy link
Copy Markdown
Member Author

This is ready to merge.

@anntzer
anntzer merged commit 0f0ef9c into matplotlib:master Apr 4, 2019
@anntzer anntzer mentioned this pull request Apr 4, 2019
6 tasks
@timhoffm
timhoffm deleted the positive-figsize branch April 5, 2019 00:43
@amueller

amueller commented Apr 5, 2019

Copy link
Copy Markdown
Contributor

Thanks!

davidgegiya added a commit to davidgegiya/agent-orchestrator that referenced this pull request Nov 9, 2026
Pin acad890afb1da7d071049d44ec655e0ae5b79e53 and its regression selectors for reproducible runs.

Source: matplotlib/matplotlib#13859
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.

6 participants