简介
在 Matplotlib 中,可以配置绘图和可视化中使用的字体族和样式。这对于确保多个绘图中文本外观的一致性,以及确保文本清晰易读非常有用。在本实验中,我们将探索如何在 Matplotlib 中配置字体族和样式。
虚拟机使用提示
虚拟机启动完成后,点击左上角切换到“笔记本”标签,以访问 Jupyter Notebook 进行练习。
有时,你可能需要等待几秒钟让 Jupyter Notebook 完成加载。由于 Jupyter Notebook 的限制,操作验证无法自动化。
如果你在学习过程中遇到问题,随时向 Labby 提问。课程结束后提供反馈,我们会及时为你解决问题。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
matplotlib(("Matplotlib")) -.-> matplotlib/AdvancedTopicsGroup(["Advanced Topics"])
python(("Python")) -.-> python/DataScienceandMachineLearningGroup(["Data Science and Machine Learning"])
matplotlib(("Matplotlib")) -.-> matplotlib/BasicConceptsGroup(["Basic Concepts"])
python(("Python")) -.-> python/DataStructuresGroup(["Data Structures"])
matplotlib/BasicConceptsGroup -.-> matplotlib/importing_matplotlib("Importing Matplotlib")
matplotlib/BasicConceptsGroup -.-> matplotlib/figures_axes("Understanding Figures and Axes")
python/DataStructuresGroup -.-> python/lists("Lists")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
matplotlib/AdvancedTopicsGroup -.-> matplotlib/matplotlib_config("Customizing Matplotlib Configurations")
python/DataScienceandMachineLearningGroup -.-> python/data_visualization("Data Visualization")
subgraph Lab Skills
matplotlib/importing_matplotlib -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
matplotlib/figures_axes -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
python/lists -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
python/importing_modules -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
matplotlib/matplotlib_config -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
python/data_visualization -.-> lab-48742{{"在 Matplotlib 中配置字体族"}}
end