next up previous

Curves in 3-Space

The following short Fortran source code shows how to write a very simple file, helix.dat in the MTV format.

First, compile and execute the above program helix to create the data file helix.dat. To begin using plotmtv, login or telnet to a machine on which plotmtv has been installed. Check with your system administrator on this. If you are running plotmtv from a remote machine, execute the xhost command on your local workstation to allow the remote machine to write to your local screen. The syntax is

Then, tell the remote machine where to display the graphics you will be creating. For the C shell, this requires executing, on the remote machine, the command

At this point, you can use plotmtv to view the data in the file helix.dat by typing

after which (with a left click on the 2D /3D option) a window similar to Figure 5 should appear. Figure 5 was constructed with command line options -pfg BLACK -pbg WHITE to set the foreground and background colors to prevent using a lot of toner when printing this document, so your default plotmtv plot will have different colors. Experiment with rotating the plot of the helix and tipping it forward and backward.