Back to Data Visualization
semilogy
Semi-logarithmic plot (log y-axis)
Syntax
semilogy(y) semilogy(x, y)
Description
Creates a 2-D line plot with a linear scale on the x-axis and a logarithmic scale on the y-axis. Useful for exponential data.
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 = 1:10; y = 10.^x; semilogy(x, y)