plot is the user-defined function from the file /usr/share/octave/2.1.36/m/plot/plot.m - Function File: plot (ARGS) This function produces two-dimensional plots. Many different combinations of arguments are possible. The simplest form is plot (Y) where the argument is taken as the set of Y coordinates and the X coordinates are taken to be the indices of the elements, starting with 1. If more than one argument is given, they are interpreted as plot (X, Y, FMT ...) where Y and FMT are optional, and any number of argument sets may appear. The X and Y values are interpreted as follows: * If a single data argument is supplied, it is taken as the set of Y coordinates and the X coordinates are taken to be the indices of the elements, starting with 1. * If the first argument is a vector and the second is a matrix, the the vector is plotted versus the columns (or rows) of the matrix. (using whichever combination matches, with columns tried first.) * If the first argument is a matrix and the second is a vector, the the columns (or rows) of the matrix are plotted versus the vector. (using whichever combination matches, with columns tried first.) * If both arguments are vectors, the elements of Y are plotted versus the elements of X. * If both arguments are matrices, the columns of Y are plotted versus the columns of X. In this case, both matrices must have the same number of rows and columns and no attempt is made to transpose the arguments to make the number of rows match. If both arguments are scalars, a single point is plotted. If the FMT argument is supplied, it is interpreted as follows. If FMT is missing, the default gnuplot line style is assumed. `-' Set lines plot style (default). `.' Set dots plot style. `@' Set points plot style. `-@' Set linespoints plot style. `^' Set impulses plot style. `L' Set steps plot style. `"#"' For boxes plot style. `"~"' For yerrorbars plot style. `">"' For xerrorbars plot style. `"~>"' For xyerrorbars plot style. `"#~"' For boxerrorbars plot style. `N' Interpreted as the plot color if N is an integer in the range 1 to 6. `NM' If NM is a two digit integer and M is an integer in the range 1 to 6, M is interpreted as the point style. This is only valid in combination with the `@' or `-@' specifiers. `C' If C is one of `"r"', `"g"', `"b"', `"m"', `"c"', or `"w"', it is interpreted as the plot color (red, green, blue, magenta, cyan, or white). `";title;"' Here `"title"' is the label for the key. `+' `*' `o' `x' Used in combination with the points or linespoints styles, set the point style. The color line styles have the following meanings on terminals that support color. Number Gnuplot colors (lines)points style 1 red * 2 green + 3 blue o 4 magenta x 5 cyan house 6 brown there exists The FMT argument can also be used to assign key titles. To do so, include the desired title between semi-colons after the formatting sequence described above, e.g. "+3;Key Title;" Note that the last semi-colon is required and will generate an error if it is left out. Here are some plot examples: plot (x, y, "@12", x, y2, x, y3, "4", x, y4, "+") This command will plot `y' with points of type 2 (displayed as `+') and color 1 (red), `y2' with lines, `y3' with lines of color 4 (magenta) and `y4' with points displayed as `+'. plot (b, "*") This command will plot the data in the variable `b' will be plotted with points displayed as `*'. t = 0:0.1:6.3; plot (t, cos(t), "-;cos(t);", t, sin(t), "+3;sin(t);"); This will plot the cosine and sine functions and label them accordingly in the key. See also: semilogx, semilogy, loglog, polar, mesh, contour, __pltopt__ bar, stairs, errorbar, gplot, gsplot, replot, xlabel, ylabel, and title. Additional help for built-in functions, operators, and variables is available in the on-line version of the manual. Use the command `help -i ' to search the manual index. Help and information about Octave is also available on the WWW at http://www.octave.org and via the help-octave@bevo.che.wisc.edu mailing list.