loglog

Log-log scale plot.

Syntax

  • loglog(X, Y)

  • loglog(X, Y, LineSpec)

  • loglog(Y)

  • loglog(Y, LineSpec)

  • loglog(ax, ...)

  • loglog(..., propertyName, propertyValue)

  • go = loglog(...)

Input argument

  • X - Log scale coordinates: scalar, vector or matrix.

  • Y - Log scale coordinates: scalar, vector or matrix.

  • LineSpec - Line style, marker, and/or color: character vector or scalar string.

  • ax - a scalar graphics object value: parent container, specified as a axes.

  • propertyName - a scalar string or row vector character. see help of 'line' for property list.

  • propertyValue - a value.

Output argument

  • go - a graphics object: line type.

Description

loglog(X, Y) plots data using a base 10 logarithmic scale for the x-axis and the y-axis.

loglog has the exact same syntax as the plot command.

Examples

f = figure();
x = logspace(-1,2);
y = 2 .^ x;
loglog(x,y)
grid on
f = figure();
x = logspace(-1,2,20);
y = 10 .^ x;
loglog(x,y,'s','MarkerFaceColor',[0 0.447 0.741])
grid on

See also

semilogx, semilogy, line, plot, grid.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated