-
Notifications
You must be signed in to change notification settings - Fork 279
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
hotfix: support matplotlib 3.3.0 #2754
Conversation
matplotlib's version is currently pinned to 3.1.3 in our test requirements, maybe it's time to bump it ? |
_png.write_png(buffer, fileobj, dpi) | ||
try: | ||
# matplotlib switched from an internal submodule _png to using pillow (PIL) | ||
# between v3.1.0 and v3.3.0 |
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.
This is a good solution for the imports. Thanks for adding the message too for our future devs. 🙂
with open(filename, "wb") as fileobj: | ||
call_png_write_png(buffer, width, height, fileobj, dpi) | ||
call_png_write_png(buffer, fileobj, dpi) |
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 wonder why the width and height were passed to the previous function when it seems like it didn't use them? Thanks for cleaning that up.
…by using pillow instead of the old _png module
ba74175
to
6a5b6b1
Compare
PR Summary
fix #2752
I also simplified
call_png_write_png
since it had two required positional arguments that were actually not used.