For graphics, we are limited to two- and three-dimensions, but, with the added possibility of animation, sound, and perhaps other sensory input in advanced environments, it is possible to usefully visualize more than three dimensions. Mathematics is not limited to a small number of dimensions; so, a challenge --or perhaps an opportunity--exists to uses artfulness to convey higher dimensional ideas graphically.
Basic graphics starts with two-dimensional plots.
|
MATHEMATICA |
| (notebook Lecture-05) |
| (html Lecture-05) |
| (xml+mathml Lecture-05) |
| Two-dimensional Plots
|
Sometimes you will want to plot number that come from elsewhere--otherwise
known as data.
Presumably, data will be imported with file I/O.
It is useful to plot data within
MATHEMATICA
so you can compare
it to model equations or to fit to an empirical equation.
Three-dimensional graphics are typically projected onto the screen.
This means that you need to specify the direction in space from which
you will look at the two-dimensional projection.
You get some depth information in a projection by the perspective (i.e, the
trick that artists use of making parallel lines converge at a non-infinite
point. (e.g. 15th century Italian School, Donetello)). You also get
information by changing your viewpoint.
In
MATHEMATICA
you need to specify a ViewPoint that orients the viewer from
a certain direction and sets the perspective.
At a close viewpoint (i.e., magnitude of the ViewPoint vector is small),
parallel lines converge quickly and perspective-as well as distortion-is
enhanced.
For more distant ViewPoints, an object projects more "flatly" (as in Art Naif) and
with less distortion.
|
MATHEMATICA |
| (notebook Lecture-05) |
| (html Lecture-05) |
| (xml+mathml Lecture-05) |
| Three Dimensional Graphics
|
MATHEMATICA
has a ``graphical engine'' that allows you to add additional graphics
to your plot.
Although, it is not efficient, one could use
MATHEMATICA
as a drawing program like
Pourri-pinte or similar.
MATHEMATICA
has a number of graphics primitives that can be drawn--it is only a question
of asking
MATHEMATICA
to draw a primitive where you want it.
|
MATHEMATICA |
| (notebook Lecture-05) |
| (html Lecture-05) |
| (xml+mathml Lecture-05) |
| Graphics Primitives
|
Because PostScript is one of the graphics primitives, you can draw anything
that can be imaged in another application.
You can also import your own drawing and images into
MATHEMATICA
.