mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 06:07:17 -05:00
Builds on the PR #1957 merge (Zeljko's Vol1 layout), otherwise byte-for-byte his version: - Remove the end-of-chapter research-questions callouts from all chapters. - ml_ops correction-cascade figure: keep Zeljko's Model A-D chain TikZ drawing, and rewrite the caption, alt-text, and lead-in to describe the chain (they carried a stale 'timeline' description that no longer matched the figure), plus an operations-impact line. - Standardize the matplotlib figure font on a bundled TeX Gyre Heros (a free, redistributable Helvetica-metric clone) registered at runtime in book/tools/figures/style.py, so figures render with a real bold identically on macOS, Linux, and CI instead of falling back to DejaVu Sans or an unreachable macOS .ttc bold face.
Figure Tools
Production figure helpers for MLSysBook live here. These modules are importable Book Tools, not scratch scripts.
Modules
style.py: shared matplotlib palette, font stack, setup helpers, and simple book-owned chart helpers such asbar_compare().margin/devices.py: stable margin-figure device vocabulary and drawing helpers used by the SVG generation workflow.
Script entrypoints that generate, insert, inventory, or render figures remain
under book/tools/scripts/. Keep reusable drawing policy here and keep scripts
thin where practical.