How to use the Log Graph Maker
- Paste your data.
- Under Axes tick "Log Y" for a semi-log plot, or both "Log X" and "Log Y" for log-log.
- Add an exponential fit (semi-log) or power fit (log-log) if you need one.
- Download the graph.
Semi-log plots
On a semi-log graph (log Y, linear X), exponential growth or decay appears as a straight line. That makes it easy to see the exponential phase of bacterial growth, radioactive decay, or first-order reaction kinetics, and to spot where the data leaves that behaviour.
Log-log plots
With both axes logarithmic, a power law y = ax^b becomes a straight line with slope b. Log-log plots are used for scaling laws, frequency responses and data spanning several orders of magnitude.
Zero and negative values
A logarithm of zero or a negative number is undefined, so those points are skipped on a log axis. If your data contains zeros, consider adding a small offset or using a linear axis.
Worked example: bacterial growth
The sample data is optical density (OD600) measured every hour during the exponential growth phase. On a linear axis the curve bends upwards; on a log Y axis the same points fall on a straight line. With an exponential trendline, Plotiq reports y = a·ebx. The growth rate is b per hour, and the doubling time is ln(2) / b. For this data b ≈ 0.55 h⁻¹, so the culture doubles roughly every 1.3 hours.
| You want | Axes | Fit | Straight line means |
|---|---|---|---|
| Growth or decay rate | Log Y | Exponential | Constant percentage change per unit X |
| Scaling law / exponent | Log X and log Y | Power | y = a·xb; slope = b |
| Diminishing returns | Log X | Logarithmic | y = a + b·ln x |
Reading values off a log axis
Equal distances on a log axis mean equal ratios, not equal differences: the gap from 1 to 10 is the same as from 10 to 100. Minor ticks between two powers of ten mark 2×, 3×… 9× that power, so the tick just above 0.1 is 0.2. Hover over any point to read its exact value instead of estimating it from the axis.
Choosing between semi-log and log-log
Try the plot that is expected to give a straight line. If Y changes by a constant factor per unit of X, for example growth or decay, use semi-log (log Y). If Y depends on a power of X, such as scaling laws, use log-log. If a straight line appears on neither, the relationship is something else. The guide to log scales has a table that maps each straight line to its equation and to what its slope means.
Getting numbers from the line
On a semi-log plot the slope of ln(y) against x is the rate constant, and the doubling time is ln 2 divided by it. On a log-log plot the slope is the exponent of the power law. Rather than measuring the slope by eye, use the exponential or power trendline, which fits the model and prints the parameters. Check that the fit is straight over the whole range; a line that bends at one end signals a different regime, such as saturation in a growth curve.
Frequently asked questions
- When should I use a log scale?
- When your values span several orders of magnitude, or when you expect exponential or power-law behaviour. A log scale makes multiplicative change look linear and keeps small values visible next to large ones.
- How do I find the doubling time from a semi-log plot?
- Fit an exponential trendline. The equation y = a·e^(bx) gives the rate b; the doubling time is ln(2) / b, in the same units as the X axis.
- How do I make a semi-log graph?
- Tick "Log Y" under Axes. The Y axis switches to powers of ten with minor ticks at 2–9.
- Can I set the log axis range?
- Yes. Enter a min and max (both above zero). By default the axis extends to whole decades.
- Is my data private?
- No. Your data never leaves your browser. Plotiq parses and plots files locally with JavaScript, so nothing is uploaded to a server.
Last updated: · by the Plotiq Editorial Team · Read our guides