Maximum number of bins

Hi everyone,

I would like to know what’s the maximum number of bins that a 2D histogram can contain!!

I have a signal of millions points that I would like to put in an histogram!!
I tried at first with only nxbins=400000 (time), nybins=400000 (y(time))
But the program crashes!
and sometime I got : Exception:Bad allocation.
Anyone have an idea about that?

Thank you in advance! ^^

400000.*400000. = 1.6E+11 bytes = 160 000 000 000 bytes = 160 Gb
Do you have such amount of Memory ?
2D histograms are memory resident objects.