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[24]:=
Click for copyable input
Colorize the number of elements using ArrayPlot:
In[30]:=
Click for copyable input
Out[30]=
Visualize the number of elements as heights in 3D:
In[31]:=
Click for copyable input
Out[31]=
New to Mathematica? Find your learning path »
Have a question? Ask support »