绘图和可视化--Matplotlib
来源:互联网 发布:英语广播电台软件下载 编辑:程序博客网 时间:2024/06/05 20:33
Matplotlib是一个强大的Python绘图和数据可视化的工具包。
安装方法:pip installmatplotlib
引用方法:importmatplotlib.pyplotasplt
绘图函数:plt.plot()
显示图像:plt.show()
plot函数:
线型linestyle(-,-.,--,..)
点型marker(v,^,s,*,H,+,x,D,o,…)
颜色color(b,g,r,y,k,w,…)
plot函数绘制多条曲线plt.plot([1,2,3],[3,2,1],'^-.y',[4,5,6,7],[2,7,9,8],'*--g')
标题:set_title
x轴:set_xlabel
y轴:y_label
其他类型图像:
hist 频数直方图
画布:figure
fig=plt.figure()
图:subplot
ax1=fig.add_subplot(2,2,1)
调节子图间距:
subplots_adjust(left,bottom,right,top,wspace,hspace)
阅读全文
0 0
- Matplotlib绘图和可视化
- 绘图和可视化--Matplotlib
- 绘图和可视化(matplotlib)
- matplotlib 绘图可视化
- 2015-03-28-绘图和可视化(1)-matplotlib API入门
- matplotlib 绘图可视化知识点整理
- matplotlib 绘图可视化知识点整理
- matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- matplotlib绘图可视化知识点整理(一)
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- Python--matplotlib绘图可视化知识点整理
- 数据结构
- NSString属性使用copy还是strong
- 使用CSS绘制三角形
- 摘花生--动态规划
- Python 迭代(6)
- 绘图和可视化--Matplotlib
- Db2 client上load from cursor报错SQL1013N The database name .. could not be found
- 解决ssh客户端与服务器加密逻辑不匹配问题
- c语言库函数strtoul
- 红黑树算法
- Struts2_010_Struts2可以受理的请求的扩展名
- Spring框架之注册—DefaultSingletonBeanRegistry实现类
- linux CPU和内存详解
- P3501NOIP2017模拟赛【2015多校联训6】益智游戏(最短路+top+dp)