Visualize the Density of Two-Dimensional Data in Bins

    
Create 1000 random points and compute the number of elements in a 2D array of bins:
In[1]:=
Click for copyable input
Colorize the number of elements using ArrayPlot:
In[2]:=
Click for copyable input
Out[2]=
Visualize the number of elements as heights in 3D:
In[3]:=
Click for copyable input
Out[3]=