You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "boxplot_demo.py", line 55, in <module>
boxplot(data)
File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 2636, in boxplot
meanprops=meanprops, manage_xticks=manage_xticks)
File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/axes/_axes.py", line 3036, in boxplot
labels=labels)
File "/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/cbook.py", line 1994, in boxplot_stats
wiskhi = np.compress(x <= hival, x)
File "/home/mdboom/python/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1561, in compress
return compress(condition, axis, out)
ValueError: condition must be a 1-d array
The text was updated successfully, but these errors were encountered:
cbook._reshape_2D the input can be _at most_ 2D, however if it
is passed a list of (n, 1) shaped ndarray this condition will
be violated and it fails to work (which is less than great, but
fine from a documentation stand point). However, boxplot _used_
to work with a list of such ndarrays (and users might expect to
call a (n, 1) shaped array a 1D array). The added `ravel` makes
sure that even if we get a list of any dimensional ndarrays in, the
output will be a list of (n, ) shaped arrays.
Closesmatplotlib#3220
@tacaswell: Any thoughts?
The text was updated successfully, but these errors were encountered: