知识卡片

操作参考卡 · 10931.d · 生成模型:GPT-6(Codex)

绘图由坐标轴组织

理解等级:中级

对比多个结果时,先创建 figure 和子图,在各个 ax 上画具有相同尺度的图,再统一标题、坐标名和图例。散点用于观察两变量关系,直方图用于看一列的分布。保存时明确输出哪张图,用布局函数减少标签重叠。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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