Mathematica

Fancier Graphics

Simultaneous plots

Several functions can be plotted simultaneously. In this example, three functions are plotted together on the same graph, by putting them into a list enclosed by curly brackets {} (the usual way to indicate a list). The PlotStyle is optional; here it is used to make the three lines have different styles.


  Plot[ {Sin[x], 2+2Cos[x/2], Sqrt[x]}, {x,0,15},
		PlotStyle->{{Hue[0.7]},{ }, {Hue[0]}} ];

Parametric plotting

Parametric plotting is possible in 2-D and 3-D.


  ParametricPlot[ {t Cos[t], t Sin[t]}, {t,0,10Pi} ];


  ParametricPlot3D[{z,(Sin[z]+2)Cos[t],(Sin[z]+2)Sin[t]}, {t,2,8}, {z,0,15}];

Standard packages

Standard packages have routines for many special graphing functions.


  Needs["Graphics`Polyhedra`"];
  Show[Graphics3D[Stellate[Icosahedron[]]]];


Next: Definining Variables and Functions
Index