-
Notifications
You must be signed in to change notification settings - Fork 528
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
silence some matplotlib warnings #3330
Conversation
just some code refactoring going on here, so no need to look at anything really |
when using tight_layout()
because it causes some problems when plotting with cartopy currently. should get unpinned again later
casting single item arrays to a scalar is deprecated in newer numpy and will result in errors at some point see numpy issue number 10404
setting an array element with a slice of a single-item array
@@ -434,7 +434,11 @@ def plot(self, outfile=None, show=True, fig=None, plot_x=True, | |||
width = min(width, height * 4) | |||
fig.set_figwidth(width) | |||
plt.subplots_adjust(top=1, bottom=0, left=0, right=1) | |||
plt.tight_layout() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we call tight_layout
on line 425 too? It seems enough to do it once after setting both width and height?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks!
What does this PR do?
Fix some failing tests, mostly due to warnings
tight_layout()
in some casesWhy was it initiated? Any relevant Issues?
Warnings in current test runs
PR Checklist
master
for new features,maintenance_...
for bug fixesno_ci
label can be added to skip CI buildsJust add the
build_docs
tag to this PR.Docs will be served at docs.obspy.org/pr/{branch_name} (do not use master branch).
Please post a link to the relevant piece of documentation.
clients.fdsn
) should be tested for the PR,just add the
test_network
tag to this PR.CHANGELOG.txt
.CONTRIBUTORS.txt
.from all the CI builds look correct. Add the "upload_plots" tag so that plotting
outputs are attached as artifacts.
CODEOWNERS
with your github handleready for review
label when you are ready for the PR to be reviewed.