New in Wolfram
Mathematica
8: Statistical Visualization
◄
previous
|
next
►
Graphics & Visualization
Log-Scaled Histograms
The vertex degree distribution for
PriceGraphDistribution
is heavy-tailed. Using logarithmic scales for the axes makes the histogram easier to read.
In[1]:=
X
g = RandomGraph[PriceGraphDistribution[10^3, 2, 1]];
In[2]:=
X
data = VertexDegree[g];
In[3]:=
X
Histogram[data, ScalingFunctions -> {"Log", "Log"}, Frame -> True, ColorFunction -> "StarryNightColors", AspectRatio -> 1, ImageSize -> 550, LabelStyle -> Bold, PlotLabel -> "Vertex Degrees for a 1000-Vertex de Solla Price Graph", BaseStyle -> {FontFamily -> "Helvetica"}]
Out[3]=