# 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

```matlab
f = figure();
x = logspace(-1,2);
y = 2 .^ x;
loglog(x,y)
grid on
```

![](https://160667757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPvJ6mJve3gz5MU4d1%2Fuploads%2Fgit-blob-4e6f8fc7b488c6a24047c38b35e2ade67e7979b6%2Floglog_1_F4E4278F.svg?alt=media)

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

![](https://160667757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPvJ6mJve3gz5MU4d1%2Fuploads%2Fgit-blob-c9555be430ad907620da23f3ee8de2bd5ccc4b2b%2Floglog_2_E6D18636.svg?alt=media)

## See also

[semilogx](semilogx), [semilogy](semilogy), [line](line), [plot](plot), [grid](grid).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
