Library Search
结果页01-面向对象绘图与高级定制
在 元器件 / 技术栈 / 知识库 中找到 13 个匹配结果。
技术栈
技术栈
5 个 Linux check_memory
check_disk
check_network
check_top_processes
log "======== 监控结束 ========"
}
# 如果传入 --watch 参数,循环执行
if [ "${1:-}" = "--watch" ]; then
while true; do
clear… 2% Matplotlib # Matplotlib 进阶 —— 面向对象绘图与出版级定制
## 本章目标
- 深入理解 Figure / Axes / Artist 对象模型
- 掌握出版级图形的定制技巧
- 学会使用 Seaborn 快速美化
## 1. Matplotlib 对象模型
```
Figure(画布)
├── Axes(坐标轴/子图) # 这就是你绘图的地方
│ ├──… 2% Pandas # ============================================================
# 日期范围生成
# ============================================================
# 日频
dates = pd.date_range("2024-01-01", "2024-01-31", freq="D")… 2% OpenCV ### 关键代码片段
```cpp
// 轮廓筛选:找到近似矩形的轮廓
for (const auto& contour : contours) {
double peri = cv::arcLength(contour, true);
std::vector<cv::Point> approx;
cv::approxPolyDP(contour, approx, 0.02… 1% Bootstrap <!-- 数据表格 -->
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="mb-0">最近订单</h5>
<button class="btn btn… 1%
知识库
知识库
8 个 01-pyplot-basics # Matplotlib 绘图基础 —— 从 pyplot 到面向对象
## 目标
- 掌握 pyplot 快速绘图
- 理解 Figure/Axes 面向对象模型
- 掌握常见图表类型的绘制
- 中文显示与样式配置
## 完整代码
```python
import matplotlib.pyplot as plt
import matplotlib
import numpy as np… 3% 01-hello-world | 概念 | 说明 |
|------|------|
| `Flask(__name__)` | 创建 WSGI 应用实例,`__name__` 用于定位资源 |
| `@app.route(path)` | 装饰器语法,将 URL 路径绑定到视图函数 |
| `<variable>` | 动态路由变量,自动传入函数参数 |
| `request.args` | 查询参数字典 `?key=val… 2% 01-tensor-basics | 概念 | 说明 |
|------|------|
| `torch.tensor()` vs `torch.Tensor()` | 前者是工厂函数(复制数据),后者是构造器(未初始化) |
| `from_numpy()` | 与 NumPy 共享内存,修改会互相影响 |
| `.to(device)` | 通用设备迁移(CPU / CUDA / MPS) |
| `requires_gra… 2% 01-keras-sequential-mnist # ============================================================
# 2. 构建模型(Sequential API)
# ============================================================
model = tf.keras.Sequential([
tf.keras.layer… 2% 01-hello-world # 方式一:函数视图(最简单)
def index(request):
"""首页 —— 返回纯文本"""
return HttpResponse("""
<h1>🚀 Hello, Django!</h1>
<ul>
<li><a href='/hello/'>/hello/</a> — 问候</li>… 2% 01-面向对象绘图与高级定制 # Matplotlib 进阶 —— 面向对象绘图与出版级定制
## 本章目标
- 深入理解 Figure / Axes / Artist 对象模型
- 掌握出版级图形的定制技巧
- 学会使用 Seaborn 快速美化
## 1. Matplotlib 对象模型
```
Figure(画布)
├── Axes(坐标轴/子图) # 这就是你绘图的地方
│ ├──… 2% Shell 脚本实战——服务器监控工具 check_memory
check_disk
check_network
check_top_processes
log "======== 监控结束 ========"
}
# 如果传入 --watch 参数,循环执行
if [ "${1:-}" = "--watch" ]; then
while true; do
clear… 2% 02-time-series-and-io # Pandas 时间序列与文件 I/O 实战
## 目标
- 掌握时间序列数据的处理:重采样、滚动窗口、shift
- 掌握多格式文件读写与性能优化
- 实战:分析电商订单数据
## 完整代码
### 1. 时间序列处理
```python
import pandas as pd
import numpy as np
from datetime import datetime, tim… 2%