Python Scipy Tutorials:Matplot
来源:互联网 发布:网络测线器 编辑:程序博客网 时间:2024/05/18 09:54
# -*- coding: utf-8 -*-"""Python Version: 3.5Created on Fri May 12 14:06:44 2017E-mail: Eric2014_Lv@sjtu.edu.cn@author: DidiLv"""import numpy as npimport matplotlib.pyplot as plt# Compute the x and y coordinates for points on a sine curvex = np.arange(0, 3 * np.pi, 0.1)y = np.sin(x)# Plot the points using matplotlibplt.plot(x, y)plt.show() # You must call plt.show() to make graphics appear.# Compute the x and y coordinates for points on sine and cosine curvesx = np.arange(0, 3 * np.pi, 0.1)y_sin = np.sin(x)y_cos = np.cos(x)# Set up a subplot grid that has height 2 and width 1,# and set the first such subplot as active.plt.subplot(2, 1, 1)# Make the first plotplt.plot(x, y_sin)plt.title('Sine')# Set the second subplot as active, and make the second plot.plt.subplot(2, 1, 2)plt.plot(x, y_cos)plt.title('Cosine')# Show the figure.plt.show()
0 0
- Python Scipy Tutorials:Matplot
- Python Scipy&NUmpy Tutorials:Scipy与Matplot
- ubuntu下安装python numpy matplot scipy
- Python Scipy Tutorials:Scipy(Image Operation)
- Python Scipy Tutorials:Distance between points
- win10安装numpy,matplot,scipy
- python+matplot+pyplot画图
- python matplot画图
- Python可视化分析-matplot基础
- ubuntu安装sklearn、matplot、scipy、moviepy、PIL、h5py、yaml
- Matplot
- matplot
- python-scipy
- matplot绘制bar图--python绘图
- Python Matplot中文显示完美解决方案
- python matplot 画网格坐标轴方法
- [warp portal] Python Tutorials
- Python Numpy Tutorials: 集合
- 前端网页禁止选中文字的方法
- 分分钟用上C#中的委托和事件
- SAP CRM OneOrder Badi 汇总(持续更新)
- idea可运行的jar包
- Qt自定义控件
- Python Scipy Tutorials:Matplot
- 敏捷开发代码管理规则:为什么要采用单一主干代码管理?如何做到单一主干代码管理?
- C#中保留N位小数的几种方法(转)
- RabbitMQ
- Osg/OsgEarth—— 无法打开文件osgGA/MatrixManipulator错误
- 欢迎使用CSDN-markdown编辑器
- nodejs异步流程控制co 模块
- Python Scipy&NUmpy Tutorials:Scipy与Matplot
- 网站对接支付宝进行支付