The following short Fortran source code shows how to write a very simple file, 2dcurve.dat in the MTV format, plotting a parabola.
program twodcurve open(4,file='2dcurve.dat',status='unknown') write(4,*)'$DATA=CURVE2D' do 10 i = -10,10 x = real(i) y = x*x write(4,*)x,y 10 continue close(4) endFirst, compile and execute the above program twodcurve to create the data file 2dcurve.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