知识卡片
绘图由坐标轴组织
对比多个结果时,先创建 figure 和子图,在各个 ax 上画具有相同尺度的图,再统一标题、坐标名和图例。散点用于观察两变量关系,直方图用于看一列的分布。保存时明确输出哪张图,用布局函数减少标签重叠。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Appendix-I List of Standard Python Packages and Their Methods · 查看原书依据
plt.figsize(): Set the figure size. Plot Annotations plt.text(): Add text to the plot at specified coordinates. plt.annotate(): Add annotations with arrows. Subplots plt.subplots(): Create a figure and a set of
参考来源
- 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》《Appendix-I List of Standard Python Packages and Their Methods》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/app1.xhtml`,book-source 项目,正文索引第 97 段,锚点 `#table013`)
- 结论依据:附录展示 subplot 与 subplots,并按绘制、定制、保存和布局列出方法。
- 原始内容:plt.figsize(): Set the figure size. Plot Annotations plt.text(): Add text to the plot at specified coordinates. plt.annotate(): Add annotations with arrows. Subplots plt.subplots(): Create a figure and a set of