Function: Logplot - logarithmic plotting

Calling sequence:

Logplot(e,x=a..b,[lx, ly], options);
Logplot(f,a..b,[lx, ly], options);


e - an expression or set or list of expressions in the variable x .

x - a name

a .. b - a range for the horizontal axis

f - a function or set or list of functions

lx , ly - true or false , determining whether each axis is logarithmic

options - most of the usual two-dimensional plot options.



Compare the results of Logplot (in red) and loglogplot (in blue), to see the latter procedure's spacing problem.

> with(plots):

> display([Logplot(x+1, x = 0.01 .. 100, [true,true], colour=red),
loglogplot(2*(x+1),x=0.01 .. 100, colour=blue)]);

[Maple Plot]

> display([Logplot(abs(cos(ln(x))),x=1..1000, [true,true], colour=red),

[Maple Plot]

Tickmarks specified as lists.

> Logplot(x -> 10^x, 1 .. 10, [true,true], tickmarks=[[1,2,3,4,6,8,10],[seq(10^(2*j),j=1..5)]],

[Maple Plot]

Several curves plotted together.

> Logplot([ 2^(sin(1/x)), 2^(cos(1/x))], x = 0.05..10, [true,true], colour=[red,blue],axes=frame);

[Maple Plot]

Parametric Logplot .

> Logplot([2+cos,2+sin,-Pi..Pi], [true,true]);

[Maple Plot]

Plotting a list of points.

> Logplot([seq([j,2^j/j^2],j=1..10)], [false, true], colour=blue,ytickmarks=3);

[Maple Plot]

Logplot with polar coordinates.

> Logplot([1+t,t,t=0.01..Pi/2-.01],[true,true],coords=polar);

[Maple Plot]

See also:

loglogplot , logplot , plot[options] , semilogplot

Maple Advisor Database R. Israel 2000