莫烦-matplotlib学习笔记(一)
来源:互联网 发布:淘宝客定向计划怎么写 编辑:程序博客网 时间:2024/05/22 06:55
参考莫烦教学视频:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-2-figure/
import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-3, 3, 50)y1=2*x + 1y2 = x**2plt.figure()#matplotlib 的 figure 就是一个 单独的 figure 小窗口plt.plot(x, y1)#在figure1里显示x-y1#plt.figure(num=2, figsize=(8, 5)) #指定figure窗口序号和大小plt.plot(x, y2)#在figure2里显示x-y2## plot the second curve in this figure with certain parametersplt.figure()#在figure3里显示x-y1和x-y2两条线plt.plot(x, y1, color='red', linewidth=1.0, linestyle='--')plt.plot(x, y2)plt.show()
阅读全文
0 0
- 莫烦-matplotlib学习笔记(一)
- Matplotlib学习笔记(一)
- matplotlib 学习笔记(一)
- Python学习笔记(一)--- Matplotlib
- 机器学习笔记(一):matplotlib入门
- matplotlib(学习一)
- 莫烦-matplotlib学习笔记(二)
- 莫烦-matplotlib学习笔记(三)
- 莫烦-matplotlib学习笔记(四)
- matplotlib学习记录(一)
- Matplotlib学习笔记(二)
- Matplotlib学习笔记(三)
- Matplotlib学习笔记(四)
- Matplotlib学习笔记(五)
- matplotlib 学习笔记(二)
- Matplotlib笔记(一)
- Matplotlib库学习(一)plt.plot
- matplotlib API学习笔记(一)(《利用Python进行数据分析》书)
- iOS Xcode 9 设置 iOS无线真机调试
- Spring中MultipartRequest如何实现文件上传
- mysql5.7官网直译SQL语句优化--多范围读取优化
- YARN的服务库和事件库
- Batch Normalization论文读后感
- 莫烦-matplotlib学习笔记(一)
- [花道日常].陈鹳潼.扫描版.pdf 免费下载
- hibernate 的基本原理
- 解析 XML格式数据
- activiti在23张表详解!!!!!!超全
- android进阶篇之View——基础篇
- oracle 表的碎片化整理
- 新路程------hi3516a flashcp 后重启失败
- Springmvc防止重复提交