Hubbry Logo
Semi-log plotSemi-log plotMain
Open search
Semi-log plot
Community hub
Semi-log plot
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Semi-log plot
Semi-log plot
from Wikipedia
The log–linear type of a semi-log graph, defined by a logarithmic scale on the y-axis (vertical), and a linear scale on the x-axis (horizontal). Plotted lines are: y = 10x (red), y = x (green), y = log(x) (blue).
The linear–log type of a semi-log graph, defined by a logarithmic scale on the x axis, and a linear scale on the y axis. Plotted lines are: y = 10x (red), y = x (green), y = log(x) (blue).

In science and engineering, a semi-log plot/graph or semi-logarithmic plot/graph has one axis on a logarithmic scale, the other on a linear scale. It is useful for data with exponential relationships, where one variable covers a large range of values.[1]

All equations of the form form straight lines when plotted semi-logarithmically, since taking logs of both sides gives

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

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 (yx), 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

[edit]

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

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

Finding the function from the semi–log plot

[edit]

Linear–log plot

[edit]

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:

which leads to

or

which means that

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 (F0x0) and (F1x1) will have the function:

log–linear plot

[edit]

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:

which leads to

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

or

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

Real-world examples

[edit]

Phase diagram of water

[edit]

In physics and chemistry, a plot of logarithm of pressure against temperature can be used to illustrate the various phases of a substance, as in the following for water:

log–linear pressure–temperature phase diagram of water. The Roman numerals indicate various ice phases.

2009 "swine flu" progression

[edit]

While ten is the most common base, there are times when other bases are more appropriate, as in this example:[further explanation needed]

A semi-logarithmic plot of cases and deaths in the 2009 outbreak of influenza A (H1N1).

Notice that while the horizontal (time) axis is linear, with the dates evenly spaced, the vertical (cases) axis is logarithmic, with the evenly spaced divisions being labelled with successive powers of two. The semi-log plot makes it easier to see when the infection has stopped spreading at its maximum rate, i.e. the straight line on this exponential plot, and starts to curve to indicate a slower rate. This might indicate that some form of mitigation action is working, e.g. social distancing.

Microbial growth

[edit]

In biology and biological engineering, the change in numbers of microbes due to asexual reproduction and nutrient exhaustion is commonly illustrated by a semi-log plot. Time is usually the independent axis, with the logarithm of the number or mass of bacteria or other microbe as the dependent variable. This forms a plot with four distinct phases, as shown below.

Bacterial growth curve

See also

[edit]

References

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A semi-log plot, also known as a semi-logarithmic graph, is a graphical representation where one axis—typically the vertical y-axis—employs a logarithmic scale, while the other axis—usually the horizontal x-axis—uses a linear scale. This configuration allows for the effective visualization of data that spans multiple orders of magnitude, transforming multiplicative or exponential relationships into more interpretable linear forms on the graph. In a semi-log plot, the on the y-axis means that the spacing between tick marks is proportional to the logarithm of the values, compressing large ranges and expanding small ones to reveal patterns that might be obscured in linear plots. For instance, an of the form y=baxy = b a^x appears as a straight line, with the equal to log(a)\log(a) and the equal to log(b)\log(b), enabling straightforward determination of growth or decay rates without complex . This is particularly valuable for analyzing phenomena involving rapid changes, such as doubling times in biological growth or pressure transients in engineering systems. Semi-log plots find widespread application across disciplines, including mathematics for plotting exponential functions, earth sciences for handling variables like stream discharge or evaporation rates over vast scales, and engineering fields such as petroleum reservoir analysis to estimate parameters like permeability from well test data. In biology and physics, they are essential for studying processes like cell concentration over time or radioactive decay, where the logarithmic axis highlights constant relative changes. Historical developments, such as the Horner plot introduced in 1951 for pressure analysis, underscore their enduring role in specialized diagnostics, often complemented by modern software for derivative methods like the Bourdet approach from 1983.

Fundamentals

Definition and Purpose

A semi-log plot, also known as a semi-logarithmic plot, is a graphical representation in which one axis employs a logarithmic scale while the other uses a linear scale, typically with the y-axis logarithmic and the x-axis linear to facilitate the straight-line depiction of exponential or power-law relationships. This configuration, often referred to as a linear-log plot, contrasts with the log-linear variant where the x-axis is logarithmic and the y-axis linear. The primary purpose of a semi-log plot is to linearize data that follows or decay, transforming curved lines on a linear-linear scale into straight lines for easier identification of trends, model fitting, and extrapolation. Unlike standard linear plots, which distort exponential functions into non-linear curves, semi-log plots reveal constant changes as uniform slopes, such as in or decay processes. Key advantages include simplifying the analysis of datasets spanning multiple orders of magnitude, where linear scales would compress or obscure details; emphasizing relative rather than absolute changes; and enabling the detection of deviations from expected exponential behavior through observable curvature. These features make semi-log plots invaluable in scientific visualization for highlighting proportional variations without manual logarithmic transformations. Semi-log plots originated in the as part of advancements in logarithmic graphing techniques to linearize non-linear relationships. They saw widespread adoption in scientific plotting by the early .

Types of Semi-log Plots

Semi-log plots are primarily divided into two variants depending on which axis uses the logarithmic scale: the linear-log plot and the log-linear plot. These types facilitate the visualization of exhibiting exponential behaviors by compressing one axis to reveal linear relationships that might otherwise appear curved on linear scales. In a linear-log plot, the x-axis is scaled linearly while the y-axis is logarithmic. This setup is ideal for data where the dependent variable grows or decays exponentially in relation to a linearly progressing independent variable. The y-axis features tick marks at logarithmic intervals, such as 1, 10, and 100, where the spacing between ticks represents equal multiplicative increments, emphasizing proportional changes in the y-values. Conversely, a log-linear plot employs a on the x-axis and a on the y-axis. It is suited for scenarios where variable spans multiple orders of magnitude or involves exponential progression, allowing for a more uniform representation across vast ranges. The x-axis ticks are positioned at powers of 10, like 0.1, 1, 10, and 100, highlighting relative differences rather than absolute ones. The primary distinction between the two is their emphasis: linear-log plots focus on multiplicative transformations of the dependent variable to linearize exponential trends, whereas log-linear plots apply the transformation to variable to reveal additive patterns post-logarithm.

Construction Methods

Creating a Linear-Log Plot

A linear-log plot, also known as a semi-log plot with a linear x-axis and logarithmic y-axis, is particularly useful for visualizing or decay in the dependent variable. Before plotting, data preparation is essential to ensure compatibility with the logarithmic y-scale, which requires all y-values to be positive. Negative values cannot be plotted on a logarithmic axis, as the logarithm of a negative number is undefined, and zeros must be handled carefully since log(0) is also undefined. Common approaches include omitting zeros or replacing them with a small positive constant smaller than the smallest non-zero value (e.g., 0.001 if the smallest non-zero value is 0.01 and appropriate for the dataset's scale) to avoid distortion, or using a discontinuous axis if the software supports it. Select the logarithmic base based on the data's context: base 10 is standard for decimal-based measurements spanning orders of magnitude, while base e (natural log) suits exponential models in physics or biology, and base 2 for binary or computational data; the choice primarily affects scaling without altering the plot's linearity for exponential fits. For manual construction, obtain semi-log with a linear horizontal (x) scale and logarithmic vertical (y) scale, typically featuring multiple cycles (e.g., 2- or 3-cycle paper for y-values spanning 1 to 100 or 1 to 1,000). Mark x-values evenly along the linear axis as usual. For y-values, locate positions on the log scale by aligning with the appropriate tick marks representing powers of the base (e.g., 1, 10, 100 for base 10), where intervals between ticks like 1 to 10 are divided non-uniformly to reflect logarithmic spacing—plot each data point (x, y) directly without computing logarithms, as the paper handles the transformation. Connect points with a straight line if the data follows an exponential model, such as y = k * a^x, to reveal the linear relationship. Software tools simplify the process by automating the scaling. In , select the data range, insert a via the Insert tab, then right-click the y-axis, choose Format Axis, and check the option under Axis Options to apply base 10 scaling by default; adjust the base if needed via Bounds settings. For stacked column charts in Excel, which can be useful for visualizing categorical or stacked data with wide value ranges, select the chart, right-click the y-axis, choose Format Axis, and under Axis Options, check the Logarithmic scale option. Adjust the Minimum (e.g., to 1 or 10, adding a small value like 0.1 to zeros if needed) and Maximum (e.g., to 100,000) bounds for appropriate spacing. This approach expands small values for better visibility, but on a logarithmic scale, the stacked totals do not sum visually in a linear manner, which can distort additive relationships and make comparisons misleading. For Python using , import the library, prepare x and y arrays, and use plt.semilogy(x, y) or plt.plot(x, y); plt.yscale('log') to set the y-axis to , with the base configurable via plt.yscale('log', base=10) or similar. In , use the base plot(x, y, log="y") function to generate the plot with a logarithmic y-axis, where the default base is 10, and customize further with par for parameters like tick marks. Common pitfalls include attempting to plot negative or zero y-values without preprocessing, which causes errors or misleading visuals in most tools. Another issue is selecting an inappropriate log base that mismatches the data's magnitude, leading to cramped or stretched visuals—always preview the range for readability across decades.

Creating a Log-Linear Plot

A log-linear plot, also known as a semi-log plot with a logarithmic x-axis and linear y-axis, is constructed manually using specialized semi-log where the horizontal axis features logarithmic divisions marked in powers of 10, while the vertical axis uses uniform linear spacing. To plot points, identify the x-value on the logarithmic ticks—major lines for powers like 1, 10, and 100, with minor lines for intermediates like 2 or 5—then move vertically to the corresponding linear y-value; for non-power-of-10 x-values, interpolate between ticks, noting that spacing compresses toward higher values due to the logarithmic nature, unlike the even spacing in linear-log constructions. This manual approach highlights the x-axis's uneven distribution, which can make low x-values appear clustered compared to the expanded higher ranges. In software, creating a log-linear plot involves selecting a scatter plot type and applying a logarithmic scale to the x-axis via formatting options, accommodating wide x-ranges that span orders of magnitude. For , insert a scatter chart from the data, right-click the x-axis, select Format Axis, and check the option under Axis Options to transform the x-axis while keeping the y-axis linear. In Python's library, use the command plt.xscale('log') after creating a plot with plt.scatter() or plt.plot(), which sets the x-axis to base-10 logarithmic scaling by default, effectively handling expansive datasets like those in scientific . Similarly, in , the base plot() function accepts the parameter log = "x" to apply logarithmic scaling to the x-axis, as documented in the graphics package, ensuring compatibility with broad value ranges without manual data adjustment. Data for log-linear plots must consist of strictly positive x-values, as the logarithm is undefined for zero or negative numbers, preventing errors in scaling and ensuring accurate representation across the axis. When x-values cluster near low magnitudes, such as early stages of exponential processes, adjust tick spacing or minor grid density in software to enhance readability, avoiding overcrowding that obscures patterns in the compressed region. Visualization in log-linear plots benefits from the logarithmic x-axis by rendering uneven spacing—common in data with accelerating rates, like time series of population growth or technology adoption—as perceptibly linear, facilitating the identification of proportional changes over irregular intervals. This contrasts with linear-log plots, where y-axis compression affects vertical trends, emphasizing instead the horizontal axis's ability to normalize multiplicative x-variations for clearer trend analysis.

Mathematical Representation

Transforming Data for Log-Linear Plots

In a log-linear plot, the standard semi-log configuration, the y-axis data undergoes a logarithmic transformation to linearize relationships that are exponential in nature. Consider an exponential function of the form y=abxy = a \cdot b^x, where a>0a > 0 is the initial value, b>0b > 0 is the base determining growth or decay, and xx is the independent variable. Applying the logarithm to both sides yields logy=loga+(logb)x\log y = \log a + (\log b) \cdot x, transforming the equation into the linear form y=c+mxy' = c + m x, where y=logyy' = \log y, the intercept c=logac = \log a, and the slope m=logbm = \log b. The derivation begins with the exponential model y=abxy = a b^x. Taking the logarithm (of any base) of both sides separates the parameters: log(y)=log(abx)=loga+log(bx)=loga+xlogb\log(y) = \log(a b^x) = \log a + \log(b^x) = \log a + x \log b, using the properties of logarithms. This results in a straight-line equation where the transformed dependent variable y=logyy' = \log y is plotted against the untransformed xx, with slope m=logbm = \log b and y-intercept c=logac = \log a. If the original data follows an exponential pattern, the transformed plot will appear linear, facilitating regression analysis or visual confirmation. The choice of logarithmic base affects the interpretation of the slope. Base-10 logarithms are commonly used in log-linear plots for their intuitive scaling, as the slope m=log10bm = \log_{10} b directly indicates the factor by which yy multiplies per unit increase in xx; for example, a slope of 0.3 corresponds to yy roughly doubling (since 100.3210^{0.3} \approx 2) per unit xx, or per decade on the log scale. In contrast, the natural logarithm (base ee) is preferred when connecting to differential equations or rates in calculus, where the slope m=lnbm = \ln b aligns with the continuous growth rate, related by lnb=log10bln102.303log10b\ln b = \log_{10} b \cdot \ln 10 \approx 2.303 \log_{10} b. A straight line on the log-linear plot verifies that the data conforms to an exponential model. The original parameters can then be recovered: a=10ca = 10^c and b=10mb = 10^m for base-10 logs, or a=eca = e^c and b=emb = e^m for natural logs, providing estimates of the and initial value directly from the fitted line. This transformation enables straightforward linear least-squares fitting to estimate mm and cc, confirming the model's validity without nonlinear optimization.

Transforming Data for Linear-Log Plots

In a linear-log plot, the independent variable xx is transformed by taking its logarithm, resulting in a graph where the dependent variable yy is plotted against logx\log x. This transformation is essential for visualizing and analyzing relationships that are linear in the logarithmic scale of xx. Specifically, it linearizes models of the form y=a+blogx,y = a + b \log x, where aa represents the y-intercept (the value of yy when logx=0\log x = 0, or x=1x = 1) and bb is the slope of the line. When data conform to this equation, the resulting plot appears as a straight line, enabling the application of linear regression to estimate parameters aa and bb accurately. The derivation of this linear form follows directly from the assumed underlying relationship. Suppose the data follow y=a+blogxy = a + b \log x; substituting u=logxu = \log x yields y=a+buy = a + b u, which is the standard equation of a straight line in terms of yy and uu. By plotting yy against uu (i.e., logx\log x), any curvature in the original yy versus xx plot due to the logarithmic dependence is eliminated, producing a linear relationship with slope bb and intercept aa. This approach is particularly effective when xx spans several orders of magnitude, as the log transformation compresses large ranges while expanding small ones, improving the visibility of trends. The slope bb quantifies the rate of change in yy per unit increase in logx\log x, providing insight into the sensitivity of yy to multiplicative changes in xx. For a base-10 logarithm, a unit increase in log10x\log_{10} x corresponds to a tenfold (one decade) increase in xx, so bb indicates the average change in yy for each decade increase in xx. For the natural logarithm (lnx\ln x), a unit increase represents an ee-fold (approximately 2.718-fold) change in xx, making bb the change in yy per ee-fold increase. In applications involving rate constants, such as certain chemical or physical processes, the choice of logarithmic base affects the interpretation and extraction of rates; for instance, converting a slope from base-10 to natural log requires multiplication by ln102.3026\ln 10 \approx 2.3026 to align with exponential rate formulations. This transformation finds utility in decay processes where the quantity follows a logarithmic dependence on time, such as y=ablogty = a - b \log t, yielding a straight line on the plot and facilitating parameter estimation. In such cases, the slope bb helps determine characteristic times, including analogs to half-life, by identifying the logt\log t value where yy halves from its initial value.

Applications and Examples

Phase Diagrams in Chemistry

In phase diagrams for substances like water, semi-log plots are employed to represent phase boundaries, particularly the vapor pressure curve, by plotting logarithmic pressure against linear temperature scales. This approach effectively depicts the equilibrium lines between solid, liquid, and vapor phases across expansive ranges of conditions. For water, the diagram highlights key features such as the triple point at approximately 0.006 atm and 0.01°C, where solid, liquid, and vapor coexist, and the critical point at 218 atm and 374°C, beyond which distinct liquid and gas phases cease to exist. The semi-log format is particularly advantageous because pressure variations in phase diagrams span orders of magnitude—from near-vacuum levels at low temperatures to thousands of atmospheres for high-pressure phases—allowing all relevant boundaries to fit within a single, interpretable graph without distortion at either extreme. This compression facilitates the visualization of trends, such as the steep rise in with temperature and the identification of points like the triple and critical points, which would otherwise require multiple linear scales or cumbersome zooming. In contemporary practice, software tools render these plots for educational and research purposes, enabling interactive exploration of phase equilibria. In these plots, the vapor pressure curve appears approximately as a straight line over moderate temperature intervals, linearizing the relationship derived from the Clapeyron equation through integration, which assumes constant enthalpy changes. The slope of this line in the semi-log representation relates directly to the enthalpy of vaporization, providing a practical means to estimate thermodynamic properties like ΔH_vap from experimental data without full nonlinear fitting. In epidemiology, semi-log plots, particularly linear-log variants with the y-axis (cumulative cases) on a logarithmic scale and the x-axis (time) linear, are essential for visualizing exponential growth phases in disease outbreaks, transforming multiplicative increases into a straight line whose slope corresponds to the intrinsic growth rate. This approach reveals the basic reproduction number (R0) directly from the slope, enabling forecasts of epidemic peaks and assessments of transmission dynamics, while contrasting sharply with linear plots that compress early exponential phases and exaggerate later saturation. Such plots highlight deviations from linearity as indicators of interventions or behavioral changes affecting spread. A prominent case study is the 2009 H1N1 swine flu pandemic, where linear-log plots of cumulative laboratory-confirmed cases against time demonstrated initial straight-line exponential growth globally from April onward, with an estimated R0 of 1.4–1.6 based on early epidemiological data from Mexico and the United States. For instance, WHO data from mid-May 2009 showed cumulative cases fitting a straight line on semi-log scales with a growth rate slope of approximately 0.021 per day in affected countries, reflecting unchecked transmission before widespread measures took effect. Subsequent flattening of the curve in these plots, observed by late summer in regions like North America and Europe, corresponded to the impact of public health interventions such as school closures, travel restrictions, and vaccination campaigns, which reduced the effective reproduction number below 1. These visualizations from WHO's FluNet surveillance system plotted regional and global infections, underscoring how semi-log representations facilitated real-time monitoring and policy evaluation during the pandemic's first wave. Semi-log plots played a similarly crucial role in the (2019–2023), where they were widely used to track exponential case growth worldwide. For example, early 2020 data from countries like and the showed straight-line increases on semi-log scales, with growth rates (r) estimated at 0.15–0.20 per day during initial phases, corresponding to doubling times of 3–5 days and R0 values around 2.5–3. Deviations from linearity later indicated the effects of lockdowns, masking, and , such as the observed slowdowns in mid-2020. These plots, based on WHO and national health data, enabled rapid assessment of intervention efficacy and forecasting of healthcare demands. Despite their utility, semi-log plots in assume constant , which may not hold amid heterogeneous populations or varying reporting; deviations from the straight line often signal effects, immunity buildup, or saturation rather than model failure. In the H1N1 context, early underreporting in low-resource areas further complicated slope interpretations until cumulative data stabilized post-June 2009.

Biological Growth Curves

In microbial growth studies, semi-log plots, particularly linear-log formats with time on the linear axis and the logarithm of cell density on the logarithmic axis, are essential for visualizing bacterial population dynamics over time. These plots transform exponential growth into a straight line during the logarithmic phase, allowing researchers to quantify growth rates accurately across vast scales of cell numbers, from 10^0 to 10^9 colony-forming units (CFU) per milliliter. The typical microbial growth curve on a semi-log plot exhibits distinct phases: an initial curved lag phase where cells adapt to the environment without significant division, transitioning to a linear log phase representing , and finally a plateau in the stationary phase as nutrients deplete or waste accumulates. In the log phase, the slope of the straight line corresponds to the specific growth rate μ, enabling calculation of the as \ln(2)/μ, which typically ranges from 20 minutes to several hours depending on the species and conditions. This representation aligns with Monod kinetics, where growth rate depends on substrate availability, facilitating analysis of batch culture transitions. In laboratory applications, semi-log plots of CFU versus time from plate counts or optical density measurements via turbidimetry are used to assess antibiotic efficacy in time-kill assays, where a reduced slope or curve deviation indicates bactericidal or bacteriostatic effects. Similarly, in fermentation optimization, these plots help monitor biomass accumulation to adjust parameters like pH, temperature, or aeration for maximal productivity in industrial bioprocesses. Compared to linear plots, semi-log formats reveal generational doublings clearly without compression at high densities, making subtle phase shifts and growth rates more discernible for precise kinetic modeling.

References

Add your contribution
Related Hubs
User Avatar
No comments yet.