Usage of the plot function in Ave ave

Source: Internet
Author: User

 

Ave ave: 14> help plot
'Plot' is a function from the file c: \ octave \ octave3.6.4 _ gcc4.6.2 \ share \ octave \ 3.6.4 \ m \ plot. m

-- Function file: plot (y)
-- Function file: plot (x, y)
-- Function file: plot (X, Y, property, value ,...)
-- Function file: plot (X, Y, FMT)
-- Function file: plot (H ,...)
-- Function file: H = plot (...)
Produce two-dimen1_plots.

Generates a two-dimensional image.

Specified different combinations of arguments are possible.
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.

To save a plot, in one of several image formats such as postscript
Or PNG, use the 'print' command.

If more than one argument is given, they are interpreted

Plot (Y, property, value ,...)

Or

Plot (X, Y, property, value ,...)

Or

Plot (X, Y, FMT ,...)

And so on. 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
Indices of the elements, starting with 1.

* If the X is a vector and Y is a matrix, then the columns (or
Rows) of Y are plotted versus X. (using whichever
Combination matches, with columns tried first .)

* If the X is a matrix and Y is a vector, Y is plotted
The columns (or rows) of X. (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.

Multiple property-value pairs may be specified, but they must
Appear in pairs. These arguments are applied to the lines drawn
'Plot '.

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.

'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 '[email protected]' specifiers.

'C'
If C is one of '"K"' (black), '"R"' (red), '"G"' (green ),
'"B"' (blue), '"M"' (magenta), '"C"' (Cyan), or '"W "'
(White), it is interpreted as the Line Plot color.

'"; Title ;"'
Here '"title"' is the label for the key.

'+'
'*'
'O'
'X'
'^'
Used in combination with the points or linespoints styles,
Set the point style.

'@'
Select the next unused point style.

The FMT argument may 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
'+') And color 1 (red), '2' with lines, 'y3' with lines of color
4 (magenta) and 'y4' with points displayed as '+ '.

Plot (B, "*", "markersize", 3)

This command will plot the data in the variable 'B', with points
Displayed as '*' with a marker size of 3.

T =.. 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.

If the first argument is an axis handle, then plot into these axes,
Rather than the current axis handle returned by 'gca '.

The optional return value H is a graphics handle to the created
Plot.

See also: semilogx, semilogy, loglog, polar, mesh, contour, bar,
Stairs, errorbar, xlabel, ylabel, title, print

 

Additional help for built-in functions and operators is
Available in the online version of the Manual. Use the command
'Doc <topic> 'to search the manual index.

Help and information about Octave is also available on the WWW
At http://www.octave.org and via the [email protected]
Mailing List.

Usage of the plot function in Ave ave

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.