Data Visualization with Mathematica
Philadelphia Math + Science Coalition
www.philaedfund.org/programs/advancing-education/philadelphia-math-science-coalition
United Way Building
1709 Benjamin Franklin Parkway, Suite 700
Philadelphia, PA 19103
March 8, 2010
Edward Bujak
Data Visualization with Mathematica
Philadelphia Math + Science Coalition
www.philaedfund.org/programs/advancing-education/philadelphia-math-science-coalition
United Way Building
1709 Benjamin Franklin Parkway, Suite 700
Philadelphia, PA 19103
March 8, 2010
Edward Bujak
Data Visualization with Mathematica
Philadelphia Math + Science Coalition
www.philaedfund.org/programs/advancing-education/philadelphia-math-science-coalition
United Way Building
1709 Benjamin Franklin Parkway, Suite 700
Philadelphia, PA 19103
March 8, 2010
Edward Bujak
Since all Mathematica computation essentially boils
down to operations on symbolic expressions, manipulat- ing mathematical expressions, graphics, or strings all involve a similar approach. This next example demon- strates the ease with which you can build and trans- form graphics from the basic building blocks using a rule-based programming approach. Here are the coordinates for a set of 9 random points in 3- space. coords = RandomInteger@80, 10<, 89, 3<D 3 8 3 10 5 10 5 2 6 9 6 8 3 7 10 10 9 6 4 9 8 1 0 8 6 3 3 2 3D Network Plot.nb
3-D Network - Plot
¢ | £
This creates a point at each coordinate and a line between
every pair of coordinates. network = Graphics3D@8 Map@Point, coordsD, Map@Line, Subsets@coords, 82<DD <D 3D Network Plot.nb 3
3-D Network - Decorate
¢ | £
Using a rule-based approach, you can easily make every
point a larger sphere and each line a blue cylinder. network . 8 Point@x_D ¦ 8Pink, Sphere@x, .4D<, Line@x_D ¦ 8Lighter@Blue, .7D, Cylinder@x, .1D< <