« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Gauges
Thermometers
In[1]:=
X
cities = {"Cairo", "Fairbanks", "Tangiers", "Moscow", "Chicago", "Miami", "Sydney", "London"};
In[2]:=
X
citytemps = WeatherData[#, "Temperature"] & /@ cities;
Use unit-aware thermometers to display temperatures in several cities.
In[3]:=
X
Row[MapThread[ ThermometerGauge[Quantity[#, "Celsius"], Quantity[ {-25, 40}, "Celsius"], GaugeFrameStyle -> None, GaugeLabels -> {"Unit", Placed[#2, Top]}] &, {citytemps, cities}]]
Out[3]=