-
Notifications
You must be signed in to change notification settings - Fork 871
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 pdplotter.show with matplotlib backend #3493
Conversation
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.
Thanks @lbluque! 👍
Can we change this method to return the ax
(fig
for plotly)? Don't see a reason not to return. And add a test for the return type?
That looks like the |
I know but does it hurt to return anyway? I guess it could actually. I think in Jupyter if some code calls |
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.
I added a bunch more tests including ones that mock PDPlotter.show()
in CI. This is good to go. 🎉
Awesome thanks for adding the tests! lgtm |
Checklist
ruff
.mypy
.duecredit
@due.dcite
decorators to reference relevant papers by DOI (example)Tip: Install
pre-commit
hooks to auto-check types and linting before every commit: