Files
MathNotesVersion1/公式笔记/函数图像/README.md
T
2026-10-04 11:44:56 +08:00

53 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 函数图像专栏
> **目标**: 用 Python(matplotlib)批量生成考研数学一所需的**标准函数图像**,统一风格、统一标注,作为笔记的"图谱库"。
> **用途**: 配合 [[../底层逻辑/函数分析流水线]] 使用 —— 看图对照流水线各 Stage 的产出。
## 专栏结构
```
函数图像/
├── README.md # 本文件
├── generate_graphs.py # 一键生成全部图像的脚本
├── images/ # 所有 PNG(脚本输出)
├── 01_基本初等函数.md # 幂 / 指 / 对 / 三角
├── 02_反函数与反三角.md # arcsin / arctan / 反函数镜像
├── 03_函数变换.md # 平移 / 伸缩 / 对称 / 绝对值
└── 04_考研典型函数.md # 流水线实战对象
```
## 图像规范
| 项 | 规范 |
|----|------|
| 字体 | SimHei(中文)+ 默认数学符号 |
| 尺寸 | 7×5 英寸,110 DPI |
| 坐标轴 | 黑色实线,过原点,0.6 线宽 |
| 网格 | 灰色虚线,alpha=0.3 |
| 函数曲线 | C0 蓝色,线宽 2 |
| 渐近线 | 红色虚线,alpha=0.6,必有 legend |
| 关键点 | 红色圆点 + 黄色标签框 |
| 标题 | 13pt,含函数表达式 |
| 输出 | PNG,自动 `bbox_inches='tight'` |
## 使用方式
```bash
# 一键重新生成所有图像
python generate_graphs.py
# 增量生成(只改某个函数)→ 直接编辑 generate_graphs.py 中对应函数
```
## 命名约定
- 图像文件: `{序号}_{英文简述}.png`
- 例如: `01_power_family.png`, `17_rational_x3_over_x2_minus_1.png`
- 在 Markdown 中用 Obsidian 内链: `![[01_power_family.png]]`
## 扩展
需新增图像时,遵循三步:
1. 在 `generate_graphs.py` 加一个 `def plot_xxx():`
2. 调用一次 `save_fig(...)`
3. 在对应 `.md` 中插入 `![[xxx.png]]`