Back to Data Visualization
semilogx
Semi-logarithmic plot (log x-axis)
Syntax
semilogx(y) semilogx(x, y)
Description
Creates a 2-D line plot with a logarithmic scale on the x-axis and a linear scale on the y-axis.
Parameters
| Name | Description |
|---|---|
| x(optional) | X-axis data (NDArray or scalar) |
| y | Y-axis data (NDArray or scalar) |
Returns
Line handle
Examples
Try It
>> x = logspace(0, 3, 50); semilogx(x, log10(x))