logplot - Maple Help

Home : Support : Online Help : Graphics : 2-D : logplot

plots

 logplot
 semi-logarithmic plot of functions where the vertical axis has a logarithmic scale

 Calling Sequence logplot(f, h, v, options)

Parameters

 f - function(s) to be plotted h - horizontal range v - (optional) vertical range options - (optional) options as described in plot/options

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{logplot}\left({10}^{x},x=1..10\right)$
 > $\mathrm{logplot}\left(\mathrm{cos}\left(x\right)+\mathrm{sin}\left(x\right),x=0..\mathrm{\pi }\right)$

Reproduce the above plots using the operator form of input.

 > $\mathrm{logplot}\left(x↦{10}^{x},1..10\right)$
 > $\mathrm{logplot}\left(\mathrm{cos}+\mathrm{sin},0..\mathrm{\pi }\right)$

Create parametric log plots.

 > $\mathrm{logplot}\left(\left[x,\mathrm{tan}\left(x\right),x=1..10\right],\mathrm{color}=\mathrm{green}\right)$
 > $\mathrm{logplot}\left(\left[\mathrm{cos},\mathrm{sin},-\mathrm{\pi }..\mathrm{\pi }\right],\mathrm{color}=\mathrm{yellow}\right)$

Plot multiple curves.

 > $\mathrm{logplot}\left(\left\{x↦{2}^{\mathrm{sin}\left(x\right)},x↦{2}^{\mathrm{cos}\left(x\right)}\right\},1..10\right)$

Plot a list of points.

 > $\mathrm{logplot}\left(\left[\left[1,2\right],\left[3,4\right],\left[5,6\right],\left[7,8\right]\right]\right)$

Display logarithmic gridlines along the vertical axis.

 > $\mathrm{logplot}\left({10}^{x},x=1..10,\mathrm{axis}\left[2\right]=\left[\mathrm{gridlines}\right]\right)$

The command to create the plot from the Plotting Guide is

 > $\mathrm{logplot}\left(x↦{2}^{{\mathrm{sin}\left(x\right)}^{5}},1..10,\mathrm{axis}\left[2\right]=\left[\mathrm{gridlines}\right]\right)$