<Python>Numpy和Matplotlib的HelloWorld
来源:互联网 发布:js调用摄像头拍照 编辑:程序博客网 时间:2024/06/05 11:14
import numpy as np
import matplotlib.pyplot as plt
构造一个要画图像的函数
p=np.poly1d([1,2,3,4])
构造一个坐标系,X的取值-5到5 200是画函数图像时候在-5到5中画200个点
x=np.linspace(-5,5,200)
求y的值
y=p(x)
将X,Y添加到plt中
plt.plot(x,y)
设置X,Y坐标名称
plt.xlabel("x坐标")
plt.ylabel("y坐标")
显示图像
plt.show()
0 0
- <Python>Numpy和Matplotlib的HelloWorld
- python安装numpy和matplotlib
- python的numpy和matplotlib包的安装
- Python中的Numpy,Scipy和matplotlib的安装
- python中的Numpy、MatPlotLib和SciPy模块的安装
- Numpy和Matplotlib的安装
- Python-PyCharm安装numpy和matplotlib
- Python安装Numpy,SciPy和MatplotLib
- Numpy,SciPy和MatplotLib 安装 -- python
- python安装 numpy、matplotlib 和scipy
- Python 的 Numpy SciPy MatPlotLib配置
- python+numpy+matplotlib安装
- python numpy+matplotlib安装
- python numpy与matplotlib
- python、numpy、matplotlib安装
- 安装numpy和matplotlib
- Numpy 和 Matplotlib 基础
- python的NumPy数学库和Matplotlib图形库的安装与配置
- 用java语言读取和写人c语音的结构体数据
- ASP.NET MVC Web API 学习笔记----HttpClient简介
- 【转】 SumaTra PDF 常用快捷键
- incompatible debugging server:address size is 4 bytes
- VIM编辑器
- <Python>Numpy和Matplotlib的HelloWorld
- Swift中UITableView的初步认识
- 选择类排序之选择排序
- JDBC学习笔记(六):批量提交与DAO
- UVA 10891——Game of Sum
- delete 和 delete []的真正区别
- ListView的下拉加载更多
- websphere中解决一个NoClassFoundException问题
- 关于会声会影重装问题