-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Zero-width figure crashes libpng #13857
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
Milestone
Comments
My vote is to raise BlackHoleSingularityError.
…On Tue, Apr 2, 2019 at 8:58 PM Andreas Mueller ***@***.***> wrote:
Bug report
*Bug summary*
Zero-width figure crashes libpng.
This happens when using %matplotlib inline or saving to png.
*Code for reproduction*
import matplotlib.pyplot as plt
plt.subplots(1, 1, figsize=(3, 0))
plt.savefig("test.png")
*Actual outcome*
RuntimeError: libpng signaled error
*Matplotlib version*
- Operating system: ubuntu / conda
- Matplotlib version: 3.0.2, conda
Apparently I broke "conda list" on my machine so getting all the versions
seems a bit tricky.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13857>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AARy-Lhb7Oq4mWRv142sFRO_JnntAhx1ks5vc_zDgaJpZM4cZZc1>
.
|
In all seriousness, though, this should be easy enough to detect and raise
in the Figure class. I can't imagine how a figsize with a 0-length
dimension would ever be anything but an error.
…On Tue, Apr 2, 2019 at 10:12 PM Benjamin Root ***@***.***> wrote:
My vote is to raise BlackHoleSingularityError.
On Tue, Apr 2, 2019 at 8:58 PM Andreas Mueller ***@***.***>
wrote:
> Bug report
>
> *Bug summary*
>
> Zero-width figure crashes libpng.
> This happens when using %matplotlib inline or saving to png.
>
> *Code for reproduction*
>
> import matplotlib.pyplot as plt
> plt.subplots(1, 1, figsize=(3, 0))
> plt.savefig("test.png")
>
> *Actual outcome*
>
> RuntimeError: libpng signaled error
>
> *Matplotlib version*
>
> - Operating system: ubuntu / conda
> - Matplotlib version: 3.0.2, conda
>
> Apparently I broke "conda list" on my machine so getting all the versions
> seems a bit tricky.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#13857>, or mute the
> thread
> <https://github.com/notifications/unsubscribe-auth/AARy-Lhb7Oq4mWRv142sFRO_JnntAhx1ks5vc_zDgaJpZM4cZZc1>
> .
>
|
yeah totally fine with an error. doing zero height works btw ?! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug summary
Zero-width figure crashes libpng.
This happens when using
%matplotlib inline
or saving to png.Code for reproduction
Actual outcome
Matplotlib version
Apparently I broke "conda list" on my machine so getting all the versions seems a bit tricky.
The text was updated successfully, but these errors were encountered: