-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Imsave AssertionError (empty bboxes) #3802
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
Conversation
Which version of matplotlib are you using? On Sat, Nov 15, 2014 at 2:25 PM, Ryan notifications@github.com wrote:
|
My apologies. I'm using Matplotlib 1.4.2 on archlinux |
When I tried this example I had issues with generating the data (exceptions from numpy) import numpy as np
import matplotlib.pyplot as plt
f = (np.random.rand(92,92)*255).astype('int')
plt.imsave("test.png", f) works as expected. I suspect that you were passing an empty array to In [15]: np.random.rand(0, 5)
Out[15]: array([], shape=(0, 5), dtype=float64) This should probably fail more gracefully, but I don't think this is a bug. |
Sorry, my bad. I gave the wrong sample code. See the original post. |
Again, I think there's an error in the example. |
PR attached. |
BUG : Imsave AssertionError (empty bboxes)
Pyplot.imsave does not seem to work. The matplotlibrc file that I'm using: https://raw.githubusercontent.com/byuimpact/numerical_computing/develop/matplotlibrc
results in an AssertionError
It appears that the
Bbox.union()
results in an empty list.EDIT: Gave the correct sample that code that produces the error.