# 半对数图

半对数图是一种二维图形，其中一个轴采用对数刻度，另一个轴采用线性刻度；它也被称为单对数图或半对数图<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup>。它的两个主要用途是：显示跨越许多个数量级、在线性轴上无法清晰容纳的数据；以及把指数关系或对数关系变成直线，使其斜率可以直接读出<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup>。当两个轴都取对数时，这种图便称为双对数图<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup>。

| 要点 | 说明 |
|---|---|
| 定义 | 一轴为对数刻度，另一轴为线性刻度；两轴皆为对数刻度则构成双对数图<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup><sup> • </sup><sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup> |
| 刻度间距 | 相等的距离代表相等的比值，而非相等的差值；每条主刻度线都是前一条的固定倍数（通常为 10 倍）<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup> |
| 指数关系的线性化 | 在对数 y 轴上，满足 \( C > 0 \) 的 \( y = C e^{a x} \) 绘成直线 \( \ln y = \ln C + a x \)<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup> |
| 对数关系的线性化 | 在对数 x 轴上，\( y = a \ln x + b \) 绘成一条直线<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup> |
| 斜率的含义 | 在半对数纸上，\( y = b \cdot a^{x} \) 的直线斜率为 \( \log(a) \)，y 截距为 \( \log(b) \)；斜率可用来求得增长率或衰减率<sup>[3](https://nool.ontariotechu.ca/mathematics/basic/points-and-graphs/semi-log-and-log-log-graphs.php)</sup><sup> • </sup><sup>[4](https://www.zubairkhalid.com/blog/data-analysis/semi-log-plot-definition-examples)</sup> |
| 定义域限制 | 对数轴不能包含零或负值，因为这类数值的对数无定义<sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup> |
| 中点读数 | 对数轴上 10 与 100 两条刻度线正中的值是 31.62，而不是 55；100 与 1000 正中的值是 316.2<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup> |

## 刻度是如何工作的

在线性轴上，相邻刻度线之间的差值是恒定的。在对数轴上，相邻主刻度线之间的*比值*是恒定的：在以 10 为底的轴上，1、10、100、1000 这几条刻度线在纸面上等距，因为它们的对数 0、1、2、3 是等距的数<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup>。而在一个十倍程之内，间距是不均匀拉伸的：1 与 2 之间的距离大于 9 与 10 之间的距离<sup>[6](https://serc.carleton.edu/mathyouneed/geomajors/log-log/index.html)</sup>。

这对读数有实际影响。画在 10 与 100 两条刻度线正中的点，代表的不是算术平均值 55，而是 \( 10^{1.5} \approx 31.62 \)，因为该位置对应的是数值的对数，而不是数值本身<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup>。

## 指数型数据为何会变成直线

核心的代数性质在于：取对数把乘法变成了加法。对于指数增长或衰减 \( y = b \cdot a^{x} \)，两边取对数得 \( \log y = \log b + x \log a \)，这正是关于 \( x \) 的一条直线方程，斜率为 \( \log a \)，截距为 \( \log b \)<sup>[3](https://nool.ontariotechu.ca/mathematics/basic/points-and-graphs/semi-log-and-log-log-graphs.php)</sup>。因此，在普通坐标轴上急剧上弯或下弯的曲线，在半对数图上就成了一条直线；而偏离直线的部分则表明数据并不遵循恒定百分比的变化<sup>[7](https://www.khanacademy.org/math/ap-precalculus/xe322600f784e4778%3Aexponential-and-logarithmic-functions/xe322600f784e4778%3Aunderstand-semi-log-plots/a/understanding-the-uses-of-semi-log-plots)</sup>。

斜率带有定量的含义。对于以 10 为底的坐标轴，增长过程的倍增时间等于 \( \log_{10}(2) \) 除以直线的斜率<sup>[4](https://www.zubairkhalid.com/blog/data-analysis/semi-log-plot-definition-examples)</sup>。一个物理实验室的例子可以说明这一方法：透过样品的光遵循朗伯定律（Lambert's Law）\( I = I_{0} e^{-\alpha x} \)，把光强对厚度 \( x \) 作半对数图，得到一条直线，其斜率为每单位 \( x \) 的 \( -\log e \approx -0.434 \)，截距为 \( \log I_{0} \)，由此即可读出吸收系数<sup>[8](https://cdn.web.uta.edu/-/media/project/website/science/physics/documents/degree-programs/physics-lab/modern-physics-lab/appendix-a.ashx)</sup>。

这种线性化有其适用范围：指数衰减曲线只有在衰减到零时，在对数轴上才是直线。若衰减趋近于一个非零基线，例如某个过程趋于平衡，那么在半对数图上它就会偏离直线而弯曲<sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup>。

## 何时使用半对数图

**数值跨度大。** 最常见的原因是数据跨越好几个数量级。新冠疫情中一个被广泛引用的例子是：截至 2020 年 11 月 17 日，美国确诊病例达 11,036,935 例，而韩国为 28,769 例；在线性轴上，韩国的数据根本看不见，但它们的以 10 为底的对数 7.04 与 4.46 可以舒舒服服地落在同一刻度上，于是半对数图能同时显示这两个国家<sup>[9](https://www.wired.com/story/what-is-a-semi-log-plot-and-when-would-you-use-one/)</sup>。同样的道理适用于地球科学：河流流量、沉积物粒径这类变量会在很大的时间或空间范围内变化；河流流量的线性图可能掩盖小流量下的变化，而半对数图则能显示出来<sup>[6](https://serc.carleton.edu/mathyouneed/geomajors/log-log/index.html)</sup>。

**恒定百分比变化。** 如果一个量每步都按固定倍数变化，例如复利或指数式人口增长，那么对数 y 轴会把这条轨迹变成直线，并使增长率以斜率的形式显现出来<sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup><sup> • </sup><sup>[4](https://www.zubairkhalid.com/blog/data-analysis/semi-log-plot-definition-examples)</sup>。反过来，对数 x 轴适合 x 值按对数间隔分布的数据，例如浓度或频率<sup>[4](https://www.zubairkhalid.com/blog/data-analysis/semi-log-plot-definition-examples)</sup><sup> • </sup><sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup>。

**对数正态分布。** 服从对数正态分布的数据在对数轴上更容易观察；这类分布常见于不能为负、右尾很长的量<sup>[2](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)</sup><sup> • </sup><sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup>。

## 限制与注意事项

对数轴不能包含零或负数，因为这类数值的对数无定义；软件通常要么把非正值当作无效值屏蔽掉，要么把它们截断为一个很小的正数<sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup><sup> • </sup><sup>[10](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.semilogy.html)</sup>。读半对数图时，若把对数轴当作线性轴，就会受到误导：在疫情的例子里，若把对数轴当作线性轴，韩国病例数看上去就与美国相当，而事实并非如此<sup>[9](https://www.wired.com/story/what-is-a-semi-log-plot-and-when-would-you-use-one/)</sup>。

分析中还有一个区别很重要：用对数轴*显示*数据，与对取过对数的数据做回归拟合，并不是一回事。回归拟合的是数据值，而不是图形；在对数空间里拟合模型会带来它自身的统计问题，例如把在对数空间估计出的系数放回原始尺度解释时会产生偏倚<sup>[5](https://www.graphpad.com/support/faqid/1487/)</sup>。

## 在软件中与在纸上

在计算机绘图出现之前，半对数数据是画在预先印好格线的半对数坐标纸上的；这种纸以多周期整张的形式出售，纵向为按十倍程重复的对数刻度，横向为线性刻度<sup>[11](https://ngds.egi.utah.edu/files/GL04407/GL04407.pdf)</sup>。早在 1895 年，《自然》（Nature）杂志就描述过对数格线纸及其读法：以精密测量著称的英国物理学家 C. V. 博伊斯（C. V. Boys）解释说，在对数纸上，一条直线代表一个幂律，其指数等于该直线倾角的正切<sup>[12](https://www.nature.com/articles/052272a0)</sup>。

现代绘图库都提供一步到位的辅助函数。Matplotlib 提供 `semilogy`、`semilogx` 和 `loglog`，其中 `semilogy` 是 `plot` 的一层薄封装，把 y 轴切换为对数刻度，默认底数为 10，并可选择如何处理非正值<sup>[10](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.semilogy.html)</sup><sup> • </sup><sup>[13](https://venus.matplotlib.org/stable/users/explain/axes/axes_scales.html)</sup>。MATLAB 的 `semilogy(Y)` 把 y 画在以 10 为底的对数刻度上，x 轴保持线性<sup>[14](https://www.sathyabama.ac.in/sites/default/files/course-material/2020-10/Unit1-3.pdf)</sup>；Wolfram 语言则提供用于纵向对数轴的 `LogPlot`、用于横向对数轴的 `LogLinearPlot`，以及基于列表的 `ListLogPlot` 和 `ListLogLinearPlot`<sup>[1](https://mathworld.wolfram.com/SemilogPlot.html)</sup>。

## 与双对数图的比较

在半对数图与双对数图之间如何取舍，取决于预期的是哪一种关系。半对数图把指数关系 \( y = b \cdot a^{x} \) 线性化，而双对数图把幂律关系 \( y = a x^{n} \) 线性化，后者表现为一条斜率为 \( n \)、截距为 \( \log(a) \) 的直线<sup>[3](https://nool.ontariotechu.ca/mathematics/basic/points-and-graphs/semi-log-and-log-log-graphs.php)</sup>。双对数图适合两个变量都跨越很大范围的数据，例如沉积物运移的尤尔斯特伦图（Hjulström diagram）中以毫米计的沉积物粒径对以厘米每秒计的水流流速<sup>[6](https://serc.carleton.edu/mathyouneed/geomajors/log-log/index.html)</sup>。

## References

1. [Weisstein, Eric W. "Semilog Plot." MathWorld--A Wolfram Resource.](https://mathworld.wolfram.com/SemilogPlot.html)
2. [GraphPad Prism 11 User Guide: What is a logarithmic axis?](https://www.graphpad.com/guides/prism/latest/user-guide/what_is_a_logarithmic_axis_.htm)
3. [Semi-Log and Log-Log Graphs, nool, Ontario Tech University](https://nool.ontariotechu.ca/mathematics/basic/points-and-graphs/semi-log-and-log-log-graphs.php)
4. [Semi-Log Plot: Definition, When to Use It and Examples, Zubair Khalid](https://www.zubairkhalid.com/blog/data-analysis/semi-log-plot-definition-examples)
5. [Statistical Principles: The use and abuse of logarithmic axes, GraphPad FAQ 1487](https://www.graphpad.com/support/faqid/1487/)
6. [How do I use Semi-log or Log-Log plots? Science Education Resource Center, Carleton College](https://serc.carleton.edu/mathyouneed/geomajors/log-log/index.html)
7. [Understanding the uses of semi-log plots, Khan Academy](https://www.khanacademy.org/math/ap-precalculus/xe322600f784e4778%3Aexponential-and-logarithmic-functions/xe322600f784e4778%3Aunderstand-semi-log-plots/a/understanding-the-uses-of-semi-log-plots)
8. [Appendix A: Semi-log Data Plotting, Modern Physics Lab, University of Texas at Arlington](https://cdn.web.uta.edu/-/media/project/website/science/physics/documents/degree-programs/physics-lab/modern-physics-lab/appendix-a.ashx)
9. [What's a Semi-Log Plot and How Can You Use It for Covid Data? WIRED](https://www.wired.com/story/what-is-a-semi-log-plot-and-when-would-you-use-one/)
10. [matplotlib.axes.Axes.semilogy, Matplotlib 3.11.2 documentation](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.semilogy.html)
11. [Semi-logarithmic graph paper (3 cycles × 70 divisions), Utah Geological Survey document archive](https://ngds.egi.utah.edu/files/GL04407/GL04407.pdf)
12. [Boys, C. V. "Scale Lines on the Logarithmic Chart." Nature 52, 272–274 (1895).](https://www.nature.com/articles/052272a0)
13. [Axis scales, Matplotlib documentation](https://venus.matplotlib.org/stable/users/explain/axes/axes_scales.html)
14. [semilogy(X1,Y1,...), MATLAB course material, Sathyabama Institute of Science and Technology](https://www.sathyabama.ac.in/sites/default/files/course-material/2020-10/Unit1-3.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 测量与时间 › 计量学、仪器仪表与应用测量 › Measurement theory and uncertainty › Logarithmic scales and level quantities

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/semi-log-plot

English original: https://www.edgepedia.org/semi-log-plot
