Logarithmic scale
A logarithmic scale represents values according to their logarithms, so equal intervals correspond to equal multiplicative ratios rather than equal additive differences.
Statistics Every Programmer Needs
A logarithmic transformation replaces each value with its logarithm to compress scale differences and reduce positive skewness.
- How it is used
- Prepares skewed or wide-ranging variables for linear regression and models Benford leading-digit probabilities.
- How deep it goes
- Explains use cases, transformed-scale interpretation, NumPy implementation, probability calculation, and distribution plots, but does not develop alternative nonlinear models.
- Examples
- Demonstrates data-frame transformation, Benford probabilities for digits 1–9, and plots contrasting logarithmic, uniform, and random distributions.
- What you can do after
- Apply logarithms with NumPy, compute Benford probabilities, and interpret transformed-scale results cautiously in regression.
Read how Statistics Every Programmer Needs explains logarithmic scale →
D3.js in Action, Third Edition
A logarithmic scale maps values through a logarithmic transformation so multiplicative differences in magnitude can be represented across a visual range.
- How it is used
- Uses logarithmic scaling to make populations spanning large magnitude differences readable in a scatterplot.
- How deep it goes
- Defines logarithmic transformation and demonstrates domain, range, and nice() configuration, without developing the underlying mathematics.
- Examples
- Uses cetacean population estimates and tenfold axis labels from 1 through 10M to demonstrate the visual benefit.
- What you can do after
- Apply it via D3 by configuring d3.scaleLog() with a data-driven domain and chart-width range.
Read how D3.js in Action, Third Edition explains logarithmic scale →
Effective Data Analysis
A numerical axis scale in which equal visual intervals represent equal multiplicative ratios.
- How it is used
- Supports visualizing metrics that fluctuate across several orders of magnitude in analytics and stakeholder reporting.
- How deep it goes
- Defines the visualization use and interpretation risk, but does not develop mathematical construction or implementation steps.
- Examples
- Uses population growth and metrics with exponential fluctuations as examples of data suited to logarithmic visualization.
- What you can do after
- Evaluate/understand when logarithmic scaling improves range visibility and communicate its interpretive limitations responsibly.
Read how Effective Data Analysis explains logarithmic scale →
Related concepts
- linear scalecontrasts with · A linear scale maps continuous input values to output values through a linear relationship between its domain and range.
- NumPyuses · NumPy is an open-source Python library for numerical computing that provides multidimensional arrays and operations on them.
- scalekind of · A visualization scale maps data values to visual values such as positions, colors, or sizes.
- power-law relationshipused by · A power-law relationship is a mathematical relationship in which one quantity is proportional to another quantity raised to a fixed exponent.
- visualizationused by · Visualization is the representation of data, information, or concepts in visual form to support inspection, interpretation, analysis, or communication.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


