From 231e71d08141f3a587b247b1ef62290cb0889e8a Mon Sep 17 00:00:00 2001 From: everyone is best one <37625649@qq.com> Date: Wed, 17 Jun 2020 11:04:32 +0800 Subject: [PATCH 1/7] Update sample_plots.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 汉化了一部分内容 --- docs/tutorials/introductory/sample_plots.md | 36 ++++++++------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/docs/tutorials/introductory/sample_plots.md b/docs/tutorials/introductory/sample_plots.md index 436daf2..4e751db 100644 --- a/docs/tutorials/introductory/sample_plots.md +++ b/docs/tutorials/introductory/sample_plots.md @@ -2,15 +2,12 @@ sidebarDepth: 3 sidebar: auto --- +# 使用Matplotlib绘制简单图形 +在此会提供很多图例以及绘制他们的代码. -# Sample plots in Matplotlib +## 折线图 -Here you'll find a host of example plots with the code that -generated them. - -## Line Plot - -Here's how to create a line plot with text labels using +创建带有文本标签的折线图 [``plot()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib.pyplot.plot).
- Simple Plot + 简单绘图
- Subplot + 子图
- Histogram Features + 直方图
- Path Patch + 轨迹绘制
- Surface3d + 3维曲面
- Streamplot with various plotting options. + 流量图的各种类型.
- Ellipse Demo + 椭圆展示
- Barchart Demo + 条形图展示
- Pie Features + 饼图展示
- Table Demo + 表格展示
- Scatter Demo2 + 散点图展示
@@ -196,11 +195,11 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Slider and radio-button GUI. + 滑动条与播放旋钮.
-## 曲线色彩填充(Filled curves) +## 色彩填充(Filled curves) 函数 [``fill()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.fill.html#matplotlib.pyplot.fill) 可以让你填充曲线与多边形: @@ -209,7 +208,7 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Fill + 填充
@@ -224,7 +223,7 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Date + 时间序列
@@ -241,7 +240,7 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Log Demo + 对数图展示
@@ -256,7 +255,7 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Polar Demo + 极坐标图展示
@@ -269,13 +268,13 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Legend + 图例
感谢 Charles Twardy 添加 legend 函数. -## 文本对象的Tex表示法(TeX-notation for text objects) +## 文本对象的TeX表示法(TeX-notation for text objects) 下面是Matplotlib的mathtext引擎当前支持的许多TeX表达式的示例。它使用了[FreeType](https://www.freetype.org/)与DejaVu, BaKoMa computer modern, 以及 [STIX](http://www.stixfonts.org),详见 [``matplotlib.mathtext``](https://matplotlib.org/api/mathtext_api.html#module-matplotlib.mathtext). @@ -284,13 +283,13 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI- Mathtext Examples + Mathtext示例
Matplotlib的mathtext架构的实现是独立的,不依赖于 TeX or 以及其他需要安装到电脑的包. 教程详见 [Writing mathematical expressions](https://matplotlib.org//text/mathtext.html). -## 原生Tex渲染(Native TeX rendering) +## 原生TeX渲染(Native TeX rendering) 尽管Matplotlib原生的渲染引擎已非常强大,但有时你还可能需要TeX. Matplotlib可通过 *usetex*选项支持第三方TeX字符渲染。 @@ -299,7 +298,7 @@ Matplotlib的mathtext架构的实现是独立的,不依赖于 TeX or 以及其- Tex Demo + TeX 展示
From 58c2d027019e8e5d98f1a6c3a07bfb3616bc3f25 Mon Sep 17 00:00:00 2001 From: everyone is best one <37625649@qq.com> Date: Wed, 17 Jun 2020 15:34:57 +0800 Subject: [PATCH 6/7] Update sample_plots.md --- docs/tutorials/introductory/sample_plots.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/tutorials/introductory/sample_plots.md b/docs/tutorials/introductory/sample_plots.md index c97f89a..9e2e3cd 100644 --- a/docs/tutorials/introductory/sample_plots.md +++ b/docs/tutorials/introductory/sample_plots.md @@ -43,7 +43,7 @@ sidebar: auto -**Example of using [``imshow()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html#matplotlib.pyplot.imshow) to display a CT scan** +**上图为使用[``imshow()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html#matplotlib.pyplot.imshow)展示的CT图** ## 热力图(pcolormesh)与等高线(contour) @@ -56,7 +56,7 @@ sidebar: auto -**Example comparing [``pcolormesh()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.pcolormesh.html#matplotlib.pyplot.pcolormesh) and [``contour()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.contour.html#matplotlib.pyplot.contour) for plotting two-dimensional data** +**[``pcolormesh()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.pcolormesh.html#matplotlib.pyplot.pcolormesh) 与[``contour()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.contour.html#matplotlib.pyplot.contour)的比较** ## 直方图(Histogram) @@ -113,8 +113,7 @@ matpltlib三维工具箱(The mplot3d toolkit)能够支持简单的三维图表 -该图为函数 [``quiver()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.quiver.html#matplotlib.pyplot.quiver) 提供了 -绘制向量场的功能,感谢Tom Flannaghan 与 Tony Yu. +感谢Tom Flannaghan 与 Tony Yu 为[``quiver()``](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.quiver.html#matplotlib.pyplot.quiver) 提供了绘制向量场的功能. ## 椭圆(Ellipses) @@ -276,7 +275,7 @@ Matplotlib提供了一些基本的独立于用户所使用的交互界面的GUI ## 文本对象的TeX表示法(TeX-notation for text objects) -下面是Matplotlib的mathtext引擎当前支持的许多TeX表达式的示例。它使用了[FreeType](https://www.freetype.org/)与DejaVu, BaKoMa computer modern, 以及 [STIX](http://www.stixfonts.org),详见 [``matplotlib.mathtext``](https://matplotlib.org/api/mathtext_api.html#module-matplotlib.mathtext). +下面是Matplotlib的mathtext引擎当前支持的TeX表达式的示例。它使用了[FreeType](https://www.freetype.org/)与DejaVu, BaKoMa computer modern, 以及 [STIX](http://www.stixfonts.org),详见 [``matplotlib.mathtext``](https://matplotlib.org/api/mathtext_api.html#module-matplotlib.mathtext).- Simple Plot + 简单绘图
- Subplot + 子图
- Histogram Features + 直方图
- Path Patch + 轨迹绘制
- Surface3d + 3维曲面
- Streamplot with various plotting options. + 流量图的各种类型.
- Ellipse Demo + 椭圆展示
- Barchart Demo + 条形图展示
- Pie Features + 饼图展示
- Table Demo + 表格展示
- Scatter Demo2 + 散点图展示
- Slider and radio-button GUI. + 滑动条与播放旋钮.
- Fill + 填充
- Date + 时间序列
- Log Demo + 对数图展示
- Polar Demo + 极坐标图展示
- Legend + 图例
- Mathtext Examples + Mathtext示例
- Tex Demo + TeX 展示