Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Give an emtpy input the right shape
  • Loading branch information
dstansby committed Nov 14, 2017
commit 7fed80025b4934185c0d0bfa35af98ae14c20765
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6095,7 +6095,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
input_empty = np.size(x) == 0
# Massage 'x' for processing.
if input_empty:
x = [np.array([[]])]
x = [np.array([])]
else:
x = cbook._reshape_2D(x, 'x')
nx = len(x) # number of datasets
Expand Down