Nplot is a powerful ploting package for graphing multiple line plots. It reads in test file data and produces a PostScript file. A couple of things to keep in mind: you can re-use and edit (using vi or emacs or whatever) the format file (e.g. *.fmt) to make changes w/o using the menu. Or you can use the menu. To run nplot, type $ nplot It will then prompt you for the format file name. Either type in a new name or an existing name. If an existing name is entered, nplot will ask you if you want to use the existing file. At that point, nplot will ask for the filename of the "x" data. It will ask for the column in that file and the number of points, it will then ask for the same info for y-data. It will ask whether line or marks are required and how many lines to skip per data point used. Other options allow you to set the title, range of x-values, etc. Type m to see all the menu items. See the example below... Also, to get a subscript use ~sub() and for superscripts ~sup(). Greek characters are obtained in a similar manner, ~greek(W) == cap. omega Here are some greek characters I know: ~greek(w) = omega ~greek(f) = phi ~greek(q) = theta ~greek(h) = eta Cap. greek letters are obtained using cap. letters. Here is an example for mag.fmt: <106 [kempel@plato]:~/web/ECE435/Downloads >nplot Enter name of plot format file (no suffix): mag Enter # of functions to be plotted ( < 11): 1 Files assumed to have data in spaced columns Data only -- no text For repeated data file names - enter Enter name of data file (with suffix) for x( 1) low11.mp Enter column number of x data 1 Enter number of points to plot 38 Enter name of data file (with suffix) for y( 1) Enter column number of y data 2 Type of plot file; Line [L] (default) or Mark [M] ? Enter skip factor ( = 0) Enter selection: m *************** MENU **************** FORMAT: mag (FORMAT.fmt file) NAME : mag (postscript NAME.ps file) Number of LINE functions : [FL] 1 Number of MARK functions : [FM] 0 FILE DATA FILES FOR X COORDINATE: COLUMN # NUM. POINTS [X1] low11.mp 1 38 FILE DATA FILES FOR Y COORDINATE: COLUMN # TYPE SKIP [Y1] low11.mp 2 LINE 0 TITLE = Title of Graph XLABEL = Independent Variable YLABEL = Dependent Variable PREVIEW = T XMAX = 0.000E+00 YMAX = 0.000E+00 BOX = T XMIN = 0.000E+00 YMIN = 0.000E+00 GRID = F XINCR = 0.000E+00 YINCR = 0.000E+00 LAND = F SMXINCR = 0.000E+00 SMYINCR = 0.000E+00 EXTRAT = T XSIZE = 4.50 YSIZE = 3.50 SMTICS = T XOFFSET = 2.00 YOFFSET = 6.00 CLIP = T EXTRAX = F EXTRAY = F MARKSZ = 0.80 XCOORD = 0.00 YCOORD = 0.00 LINESZ = 0.50 XFMT = (f5.1) YFMT = (f5.1) LGND = F XLOG = F YLOG = F NLINES = 1 VARIABLE NAME to change value, P to plot, R to rescale X/Y MIN/MAX, RR to re-read data files, M to update menu : Enter selection: title ENTER TITLE Low Pass Filter S~sub(1)~sub(1) Magnitude vs. Frequency TITLE changed to ; Low Pass Filter S~sub(1)~sub(1) Magnitude vs. Frequency Enter selection: xlabel ENTER XLABEL Frequency [MHz] XLABEL changed to ; Frequency [MHz] Enter selection: ylabel ENTER YLABEL S~sub(1)~sub(1) Magnitude YLABEL changed to ; S~sub(1)~sub(1) Magnitude Enter selection: xmin ENTER XMIN 0 XMIN changed to ; 0. Enter selection: xmax ENTER XMAX 2000 XMAX changed to ; 2000.00 Enter selection: xincr ENTER XINCR 500 XINCR changed to ; 500.000 Enter selection: smxincr ENTER SMXINCR 100 SMXINCR changed to ; 100.0000 Enter selection: xfmt ENTER XFMT (f6.1) XFMT changed to ; (f6.1) Enter selection: ymax ENTER YMAX 2 YMAX changed to ; 2.00000 Enter selection: ymin ENTER YMIN 0 YMIN changed to ; 0. Enter selection: yincr ENTER YINCR 0.5 YINCR changed to ; 0.500000 Enter selection: smyincr ENTER SMYINCR 0.1 SMYINCR changed to ; 1.00000E-01 Enter selection: p WARNING: File mag.ps already exists. Do you want to overwrite it? ( = yes) Enter selection: q <107 [kempel@plato]:~/web/ECE435/Downloads > More to come? Ask Leo (kempel@egr.msu.edu)