简介
在本实验中,我们将学习如何使用 Python 的 Matplotlib 库创建一个简单的散点图。散点图是一种将两个变量的值显示为点的集合的图表类型。每个点代表两个变量的值,点的位置表示这两个变量的值。散点图对于识别变量之间的关系和识别异常值很有用。
虚拟机使用提示
虚拟机启动完成后,点击左上角切换到“笔记本”标签,以访问 Jupyter Notebook 进行练习。
有时,你可能需要等待几秒钟让 Jupyter Notebook 完成加载。由于 Jupyter Notebook 的限制,操作验证无法自动化。
如果你在学习过程中遇到问题,随时向 Labby 提问。课程结束后提供反馈,我们会及时为你解决问题。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
matplotlib(("Matplotlib")) -.-> matplotlib/PlottingDataGroup(["Plotting Data"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
python(("Python")) -.-> python/DataScienceandMachineLearningGroup(["Data Science and Machine Learning"])
matplotlib(("Matplotlib")) -.-> matplotlib/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
python(("Python")) -.-> python/PythonStandardLibraryGroup(["Python Standard Library"])
matplotlib/BasicConceptsGroup -.-> matplotlib/importing_matplotlib("Importing Matplotlib")
matplotlib/BasicConceptsGroup -.-> matplotlib/figures_axes("Understanding Figures and Axes")
matplotlib/PlottingDataGroup -.-> matplotlib/scatter_plots("Scatter Plots")
python/DataStructuresGroup -.-> python/tuples("Tuples")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
python/ModulesandPackagesGroup -.-> python/standard_libraries("Common Standard Libraries")
python/PythonStandardLibraryGroup -.-> python/math_random("Math and Random")
python/DataScienceandMachineLearningGroup -.-> python/numerical_computing("Numerical Computing")
python/DataScienceandMachineLearningGroup -.-> python/data_visualization("Data Visualization")
subgraph Lab Skills
matplotlib/importing_matplotlib -.-> lab-48918{{"可视化变量关系"}}
matplotlib/figures_axes -.-> lab-48918{{"可视化变量关系"}}
matplotlib/scatter_plots -.-> lab-48918{{"可视化变量关系"}}
python/tuples -.-> lab-48918{{"可视化变量关系"}}
python/importing_modules -.-> lab-48918{{"可视化变量关系"}}
python/standard_libraries -.-> lab-48918{{"可视化变量关系"}}
python/math_random -.-> lab-48918{{"可视化变量关系"}}
python/numerical_computing -.-> lab-48918{{"可视化变量关系"}}
python/data_visualization -.-> lab-48918{{"可视化变量关系"}}
end