plt1
2018-03-16 08:37
141 查看
import matplotlib.pyplot as plt ''' plot 函数 线型linestyle(-,-.,--,...) 点型 market(v,*,H,^......) color(r,k,g...) plot 函数绘制多条曲线 标题:set title x 轴: xlable y 轴: ylable hist 直方图 ''' plt.plot([1,2,3,4])
plt.plot([1,2,3,4],'r*')
指定横纵坐标,2个一组,一次可放入多组
plt.plot([1,2,3,4],[1,2,3,4],'ro',[1,2,3,4],[0.5,1,1.5,2],'g')
plt.plot([1,2,3,4],[1,2,3,4],'ro-',[1,2,3,4],[0.5,1,1.5,2],'g')
plt.title('simple plt')
plt.xlabel('xxxxxxx')
plt.ylabel('yyyyyyy')
plt.plot([1,2,3,4],[1,2,3,4],'ro-',[1,2,3,4],[0.5,1,1.5,2],'g')
# 画布里面添加小图 ax1 = fig.add_subplot(2,2,1) # 图的尺寸为 2*2 第一个位置 ax2 = fig.add_subplot(2,2,4) # 图的尺寸为 2*2 第4个位置 ax1.set_xlabel('xxxx') ax1.set_ylabel('yyyy') ax1.set_title('simple') ax1.plot([1,2,3,4],'g-',label='line1',linewidth=3) ax2.set_xlabel('xx') ax2.set_ylabel('yy') ax2.set_title('sim') ax2.plot([4,3,2,1],'bo',label='line2',linewidth=6)
相关文章推荐
- Android ELF文件PLT和GOT
- gdb演示Android ELF的GOT Hook
- 动态链接库之延迟绑定探究
- 动态链接库中函数的地址确定---PLT和GOT
- Python的matplotlib库学习笔记第一篇
- PLT , GOT 介绍及简单 GOT 攻击实验
- Python matplotlib 通过 plt.scatter画空心圆标记出特定的点
- matplotlib 绘图可视化知识点整理
- ELF Hook原理
- Python: Matplotlab 的 figure转换为numpy的arrary方法
- 理解got和plt
- ELF文件的加载和动态链接过程
- GOT和PLT原理简析
- Linux动态链接之二:优化加速之延迟绑定PLT
- plt.imshow不显示图像
- Linux Debugging(七): 使用反汇编理解动态库函数调用方式GOT/PLT
- python之plt画图之格式化颜色和线形
- matplotlib中文坐标轴和标题显示
- 凡哥OpenCV基础入门教程(跳一跳专题)-CH1.2_通过Matplotlib展示图片
- 对Python中plt的画图函数详解