matplotlib 可视化 —— matplotlib.patches
2016-08-25 15:44
405 查看
官方帮助文档 patches — Matplotlib 1.5.1 documentation
patches 下主要包含的常用图形类有:
Eclipse
Circle
Wedge
patches 下主要包含的常用图形类有:
Eclipse
Circle
Wedge
1. plt.gca().add_patch(**)
注意,创建的图形对象不会直接在 figure 中显示,需要添加进 axis。import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Wedge a = Wedge((.5, .5), .5, 0, 360, width=.25, color='red') plt.gca().add_patch(a) plt.axis('equal') plt.axis('off') plt.show()
相关文章推荐
- Matplotlib模块:绘图和可视化
- matplotlib模块数据可视化-设置tick的能见度
- Python数据可视化matplotlib(二)—— 子图功能
- 绘图和可视化--Matplotlib
- Python的地形三维可视化——简介Matplotlib和gdal
- 【机器学习】【可视化】Matplotlib的scatter函数用法
- Python--matplotlib绘图可视化知识点整理
- matplotlib 可视化 —— 绘制常见图形
- Python数据分析之可视化一matplotlib(常用方法)
- Python库(1):matplotlib数据可视化知识点
- Python--matplotlib绘图可视化知识点整理
- python可视化--matplotlib
- Python可视化库matplotlib
- matplotlib.patches.Polygon
- 【Python学习笔记 】12.可视化库Matplotlib(下)
- Matplotlib数据集可视化图表细节
- matplotlib绘图可视化知识点整理
- IPython绘图和可视化---matplotlib 入门
- Python--matplotlib绘图可视化知识点整理
- 【matplotlib】数据可视化的几个资料