Skip to content
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 deprecated tight layout matplotlib #180

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Fix deprecated tight layout matplotlib #180

merged 1 commit into from
Oct 12, 2022

Conversation

yannikschaelte
Copy link
Member

@yannikschaelte yannikschaelte commented Oct 11, 2022

@yannikschaelte yannikschaelte self-assigned this Oct 11, 2022
Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

👍

Comment on lines 363 to +365
fig, axes = plt.subplots(num_row, num_col, squeeze=False,
figsize=self.figure.size)
fig.set_tight_layout(True)
fig.set_layout_engine("tight")
Copy link
Member

Choose a reason for hiding this comment

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

Alternatively, add layout='tight' directly to the subplots call

@yannikschaelte yannikschaelte merged commit 7455e03 into develop Oct 12, 2022
@yannikschaelte yannikschaelte deleted the fixes_ys branch October 12, 2022 12:28
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.

2 participants