b12f778a创建于 2022年9月19日历史提交

SemiLog

Semilog plots are line plots where either :math:x or :math:y-axis are on the log scale.

Examples

  1. Example for semilog in the :math:x-direction.

::

let x = linspace<Float64>(0.01, 1000.0, num:1001)
let y = x.apply({t => log(t)})
semilogx(x, y)

.. image:: ../../../tests/imgs/semilog_plot/semilogx_1.png :align: center :width: 360

  1. Example of semilog in the :math:y-direction.

::

let x = linspace<Float64>(0.0, 10.0, num:101)
let y = x.apply({t => exp(t)})
semilogy(x, y)

.. image:: ../../../tests/imgs/semilog_plot/semilogy_1.png :align: center :width: 360

Methods

============================== ================================================ Method Description ============================== ================================================ semilogx(x, y, line_spec) Plot a line with y versus x with logx axis. semilogy(x, y, line_spec) Plot a line with y versus x with logy axis. ============================== ================================================

Description

.. function:: semilogx(x, y, line_spec!)

:param x: Vector<Float64>
:param y: Vector<Float64>
:line_spec: String

Plot a line with y versus x with logx axis.

.. function:: semilogy(x, y, line_spec!)

:param x: Vector<Float64>
:param y: Vector<Float64>
:line_spec: String

Plot a line with y versus x with logy axis.