Lably
Skip to content

Semi-log plot

Type of graph

  • 3 min read
  • 2 chapters

Related on Lably

Through Science, Engineering and Exponential growth

All equations of the form y=λaγx form straight lines when plotted semi-logarithmically, since taking logs of both sides gives

loga⁡y=γx+loga⁡λ.

This is a line with slope γ and loga⁡λ vertical intercept. The logarithmic scale is usually labeled in base 10; occasionally in base 2:

log⁡(y)=(γlog⁡(a))x+log⁡(λ).

A log–linear (sometimes log–lin) plot has the logarithmic scale on the y-axis, and a linear scale on the x-axis; a linear–log (sometimes lin–log) is the opposite. The naming is output–input (y–x), the opposite order from (x, y).

On a semi-log plot the spacing of the scale on the y-axis (or x-axis) is proportional to the logarithm of the number, not the number itself. It is equivalent to converting the y values (or x values) to their log, and plotting the data on linear scales. A log–log plot uses the logarithmic scale for both axes, and hence is not a semi-log plot.

Equations

The equation of a line on a linear–log plot, where the abscissa axis is scaled logarithmically (with a logarithmic base of n), would be

F(x)=mlogn⁡(x)+b.

The equation for a line on a log–linear plot, with an ordinate axis logarithmically scaled (with a logarithmic base of n), would be:

logn⁡(F(x))=mx+b
F(x)=nmx+b=(nmx)(nb).

Finding the function from the semi–log plot

Linear–log plot

On a linear–log plot, pick some fixed point (x0, F0), where F0 is shorthand for F(x0), somewhere on the straight line in the above graph, and further some other arbitrary point (x1, F1) on the same graph. The slope formula of the plot is:

m=F1−F0logn⁡(x1/x0)

which leads to

F1−F0=mlogn⁡(x1/x0)

or

F1=mlogn⁡(x1/x0)+F0=mlogn⁡(x1)−mlogn⁡(x0)+F0

which means that F(x)=mlogn⁡(x)+constant

In other words, F is proportional to the logarithm of x times the slope of the straight line of its lin–log graph, plus a constant. Specifically, a straight line on a lin–log plot containing points (F0, x0) and (F1, x1) will have the function:

F(x)=(F1−F0)[logn⁡(x/x0)logn⁡(x1/x0)]+F0=(F1−F0)logx1x0⁡(xx0)+F0

log–linear plot

On a log–linear plot (logarithmic scale on the y-axis), pick some fixed point (x0, F0), where F0 is shorthand for F(x0), somewhere on the straight line in the above graph, and further some other arbitrary point (x1, F1) on the same graph. The slope formula of the plot is:

m=logn⁡(F1/F0)x1−x0

which leads to

logn⁡(F1/F0)=m(x1−x0)

Notice that nlogn(F1) = F1. Therefore, the logs can be inverted to find:

F1F0=nm(x1−x0)

or

F1=F0nm(x1−x0)

This can be generalized for any point, instead of just F1:

F(x)=F0n(x−x0x1−x0)logn⁡(F1/F0)

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication