8000 Give an emtpy input the right shape · matplotlib/matplotlib@7fed800 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fed800

Browse files
committed
Give an emtpy input the right shape
1 parent 221a218 commit 7fed800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6095,7 +6095,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
60956095
input_empty = np.size(x) == 0
60966096
# Massage 'x' for processing.
60976097
if input_empty:
6098-
x = [np.array([[]])]
6098+
x = [np.array([])]
60996099
else:
61006100
x = cbook._reshape_2D(x, 'x')
61016101
nx = len(x) # number of datasets

0 commit comments

Comments
 (0)
0