« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Units
Compare Different Units
Compare different units visually with charting functions like
PieChart
.
In[1]:=
X
data = {"175 lb", "100 kg", "12 stones", "hundredweight"};
In[2]:=
X
PieChart[Quantity /@ data, ChartLabels -> data, ImageSize -> Medium, LabelStyle -> {FontFamily -> "Helvetica", FontSize -> 14}]
Out[2]=
In[3]:=
X
data2 = {"4 ft. 5 inches", "172 cm", "2.3 yards", "horse length"};
In[4]:=
X
BarChart[Quantity /@ data2, ChartLabels -> data2, ChartStyle -> "Rainbow", AxesLabel -> Automatic, ImageSize -> Medium, LabelStyle -> {FontFamily -> "Helvetica", FontSize -> 14}]
Out[4]=