plots
loglogplot
doubly logarithmic plot of functions
Calling Sequence
Parameters
Description
Examples
loglogplot(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 loglogplot command creates a 2-D plot where the vertical and horizontal axes have logarithmic scales. A typical call to the loglogplot command is loglogplot(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 loglogplot command provides support for 2-D log-log plots of one or more functions specified as expressions, procedures, parametric functions or lists of points. For more information about the different input forms, see plot/function.
The horizontal and vertical range arguments h and v define the axes labels and the ranges over which the function is 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 used for the plot command. For more information, see plot/option.
An alternative method for creating a 2-D plot where the axes have logarithmic scales is to use the plot command with the axis option.
with⁡plots:
loglogplot⁡10x,x=1..10
loglogplot⁡cos⁡x+sin⁡x,x=1..π
Reproduce the above plots using the operator form of input.
loglogplot⁡x↦10x,1..10
loglogplot⁡cos+sin,1..π
Create log-log plots with multiple curves.
loglogplot⁡x↦2sin⁡x,x↦2cos⁡x,1..10
loglogplot⁡2−x,tan⁡x,x=1..10
Plot a parametric curve.
loglogplot⁡cos,sin,−π..π
Plot a list of points.
loglogplot⁡1,2,3,4,5,6,7,8
Display logarithmic gridlines along the axes.
loglogplot⁡1x+x10,x=0.1..10,gridlines
See Also
plot
plot/axis
plot/function
plot/option
plot/range
plots[logplot]
plots[semilogplot]
Download Help Document