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 Arguments
Parameter Description
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 Arguments
Parameter Description
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
Example illustration
f = figure();
x = logspace(-1,2,20);
y = 10 .^ x;
loglog(x,y,'s','MarkerFaceColor',[0 0.447 0.741])
grid on
Example illustration
🔗See Also
semilogxsemilogylineplotgrid
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub