Problems understanding histogram2d
20 Jul
2012
20 Jul
'12
3:11 p.m.
Hi, I have a problem using histogram2d: from numpy import linspace, histogram2d bins_x = linspace(-180., 180., 360) bins_y = linspace(-90., 90., 180) data_x = linspace(-179.96875, 179.96875, 5760) data_y = linspace(-89.96875, 89.96875, 2880) histogram2d(data_x, data_y, (bins_x, bins_y)) AttributeError: The dimension of bins must be equal to the dimension of the sample x. I would expect histogram2d to return a 2d array of shape (360,180), which is full of 256s. What am I missing here? Cheers, Andreas.
4269
Age (days ago)
4270
Last active (days ago)
3 comments
4 participants
participants (4)
-
Andreas Hilboll
-
Aronne Merrelli
-
eat
-
yogesh karpate