原文链接:https://matplotlib.org/tutorials/index.html

这一页包含更深入的使用Matplotlib的指导。它分为初学者,中级,和高级。以及涵盖特定主题的部分。

对于较短的例子, 看我们的 实例页.你可以在我们的 用户指导 找到 外部资源常见问题解答 .

引言

这些文档覆盖Matplotlib创建可视化的基础,和有效使用包的一些使好的实践。

../_images/sphx_glr_usage_thumb.png
使用指南
../_images/sphx_glr_pyplot_thumb.png
Pyplot 指南
../_images/sphx_glr_sample_plots_thumb.png
Matplotlib的样本图形
../_images/sphx_glr_images_thumb.png
图像指南


../_images/sphx_glr_lifecycle_thumb.png
Plot的生命周期
../_images/sphx_glr_customizing_thumb.png
使用样式表和rcParams自定义Matplotlib

中级

这些教程覆盖了一些Matplotlib中更复杂的类和函数。它们对于特定的定制和复杂的可视化非常有用。

../_images/sphx_glr_artists_thumb.png
Artist 指导
../_images/sphx_glr_legend_guide_thumb.png
Legend 图例指导
../_images/sphx_glr_color_cycle_thumb.png
Styling with cycler样式与周期计
../_images/sphx_glr_gridspec_thumb.png
Customizing Figure Layouts Using GridSpec and Other Functions
使用GridSpec和其他功能定制图形布局
../_images/sphx_glr_constrainedlayout_guide_thumb.png
Constrained Layout Guide
约束布局指南
../_images/sphx_glr_tight_layout_guide_thumb.png
Tight Layout guide
紧密的布局指南
../_images/sphx_glr_imshow_extent_thumb.png
origin and extent in imshow
imshow的起源和范围

高级

这些教程涵盖了经验丰富的Matplotlib用户和开发人员的高级主题。

../_images/sphx_glr_path_tutorial_thumb.png
Path 教程
../_images/sphx_glr_patheffects_guide_thumb.png
Path路径影响指南
../_images/sphx_glr_transforms_tutorial_thumb.png
Transformations 教程

渲染

Matplotlib支持使用多种颜色和颜色映射可视化信息 . 些教程涵盖了这些颜色地图的基本原理, 你如何创建自己的, 和如何为用例自定义颜色映射。

有关更多信息请查看examples page.

../_images/sphx_glr_colors_thumb.png
指定Colors
../_images/sphx_glr_colorbar_only_thumb.png
自定义色带教程l
../_images/sphx_glr_colormap-manipulation_thumb.png
在Matplotlib创建Colormaps
../_images/sphx_glr_colormapnorms_thumb.png
Colormap标准化
../_images/sphx_glr_colormaps_thumb.png
在Matplotlib选择颜色图谱

Text

matplotlib有大量的text支持, 包括支持数学表达式, truetype 支持栅格和向量输出, 换行符分割的文本具有任意旋转, 和unicode 支持. 这些教程涵盖了使用Matplotlib处理文本的基础知识 。

../_images/sphx_glr_text_intro_thumb.png
Text in Matplotlib Plots
../_images/sphx_glr_text_props_thumb.png
Text 属性和布局
../_images/sphx_glr_annotations_thumb.png
注释
../_images/sphx_glr_mathtext_thumb.png
写数学表达式
../_images/sphx_glr_pgf_thumb.png
XeLaTeX/LuaLaTeX排字
../_images/sphx_glr_usetex_thumb.png
Text 呈现于 LaTeX

工具集

这些教程涵盖了旨在扩展Matplotlib功能以实现特定目标的工具包。

../_images/sphx_glr_axes_grid_thumb.png
axes_grid1 工具包概述
../_images/sphx_glr_axisartist_thumb.png
axisartist 工具包概述
../_images/sphx_glr_mplot3d_thumb.png
mplot3d 工具包

Download all examples in Python source code: tutorials_python.zipDownload all examples in Jupyter notebooks: tutorials_jupyter.zip

发表回复