| Contents | Index |
|
To graph selected variables, use the Plot Selector
in the Workspace Browser,
or use the Figure Palette Plot Catalog. Manipulate graphs in plot
edit mode with the Property Editor. For details, see Plotting Tools
— Interactive Plotting in the MATLAB Graphics
documentation and Creating Graphics
from the Workspace Browser in the MATLAB Desktop Tools
documentation.
semilogy(Y)
semilogy(X1,Y1,...)
semilogy(X1,Y1,LineSpec,...)
semilogy(...,'PropertyName',PropertyValue,...)
h = semilogy(...)
semilogy plots data with logarithmic scale for the y-axis.
semilogy(Y) creates a plot using a base 10 logarithmic scale for the y-axis and a linear scale for the x-axis. It plots the columns of Y versus their index if Y contains real numbers. semilogy(Y) is equivalent to semilogy(real(Y), imag(Y)) if Y contains complex numbers. semilogy ignores the imaginary component in all other uses of this function.
semilogy(X1,Y1,...) plots all Xn versus Yn pairs. If only Xn or Yn is a matrix, semilogy plots the vector argument versus the rows or columns of the matrix, along the dimension of the matrix whose length matches the length of the vector. If the matrix is square, its columns plot against the vector if their lengths match.
semilogy(X1,Y1,LineSpec,...) plots all lines defined by the Xn,Yn,LineSpec triples. LineSpec determines line style, marker symbol, and color of the plotted lines.
semilogy(...,'PropertyName',PropertyValue,...) sets property values for all lineseries properties graphics objects created by semilogy.
h = semilogy(...) returns a vector of handles to lineseries graphics objects, one handle per line.
If you do not specify a color when plotting more than one line, semilogy automatically cycle through the colors and line styles in the order specified by the current axes ColorOrder and LineStyleOrder properties.
You can mix Xn,Yn pairs with Xn,Yn,LineSpec triples; for example,
semilogy(X1,Y1,X2,Y2,LineSpec,X3,Y3)
If you attempt to add a loglog, semilogx, or semilogy plot to a linear axis mode graph with hold on, the axis mode remains as it is and the new data plots as linear.
The OpenGL renderer does not support logarithmic-scale axes. MATLAB automatically selects a different renderer when using logarithmic scaling. If you set the figure Renderer property to opengl, axis scales become linear. See the figure Renderer property for more information on renderers.
Create a simple semilogy plot.
x = 0:.1:10; semilogy(x,10.^x)

line | LineSpec | loglog | plot | semilogx
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |