plots
logplot
semi-logarithmic plot of functions where the vertical axis has a logarithmic scale
Calling Sequence
Parameters
Description
Examples
logplot(f, h, v, options)
f
-
function(s) to be plotted
h
horizontal range
v
(optional) vertical range
options
(optional) options as described in plot/options
The logplot command creates a 2-D plot where the vertical axis has a logarithmic scale. A typical call to the logplot command is logplot(f(x), x=a..b), where f is a real function in x and a..b specifies the horizontal real range on which f is plotted.
The logplot command provides support for two-dimensional log plots of one or more functions specified as expressions, procedures, parametric curves, or lists of points. For more information on the different input forms, see plot/function.
The horizontal and vertical range arguments h and v define the axis labels and the range over which the function(s) are displayed. They take one of the following forms: string, low..hi, or string=low..hi, where low and hi are real constants. For more information, see plot/range.
Remaining arguments are interpreted as options which are specified as equations of the form option = value. These options are the same as for those found with the plot command. For more information, see plot/option.
An alternative method for creating a two-dimensional plot where the vertical axis has a logarithmic scale is to use the plot command with the axis option.
with⁡plots:
logplot⁡10x,x=1..10
logplot⁡cos⁡x+sin⁡x,x=0..π
Reproduce the above plots using the operator form of input.
logplot⁡x↦10x,1..10
logplot⁡cos+sin,0..π
Create parametric log plots.
logplot⁡x,tan⁡x,x=1..10,color=green
logplot⁡cos,sin,−π..π,color=yellow
Plot multiple curves.
logplot⁡x↦2sin⁡x,x↦2cos⁡x,1..10
Plot a list of points.
logplot⁡1,2,3,4,5,6,7,8
Display logarithmic gridlines along the vertical axis.
logplot⁡10x,x=1..10,axis2=gridlines
The command to create the plot from the Plotting Guide is
logplot⁡x↦2sin⁡x5,1..10,axis2=gridlines
See Also
plot
plot/axis
plot/function
plot/option
plot/range
plots[loglogplot]
plots[semilogplot]
Download Help Document