Function: Logplot - logarithmic plotting

Calling sequence:

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

Parameters:

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 - or , determining whether each axis is logarithmic

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

Description:

Examples:

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)]);

> display([Logplot(abs(cos(ln(x))),x=1..1000, [true,true], colour=red),
loglogplot(abs(cos(ln(2*x))),x=1..1000,colour=blue)],
style=point);

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)]],
labels=["x","y"]);

Several curves plotted together.

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

Parametric Logplot .

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

Plotting a list of points.

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

Logplot with polar coordinates.

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