Scipy 在numpy基础上增加了众多的数学、科学及工程常用的库函数; 线性代数、常微分方程求解、信号处理、图像处理、稀疏矩阵等; Matplotlib 用于创建出版质量图表的绘图工具库; 目的是为python构建一个Matlab式的绘图接口; import matplotlib.pyplot a ...
分类:
编程语言 时间:
2017-03-12 18:17:44
阅读次数:
548
1 from matplotlib.pyplot import * 2 x = [1, 2, 3, 4] 3 y = [5, 4, 3, 2] 4 5 figure() 6 subplot(231) 7 plot(x,y) 8 9 subplot(232) 10 bar(x,y) 11 12 sub... ...
分类:
其他好文 时间:
2017-03-12 01:13:30
阅读次数:
170
matplotlib实际上是一套面向对象的绘图库,它所绘制的图表中的每个绘图元素,例如线条Line2D、文字Text、刻度等在内存中都有一个对象与之对应。为了方便快速绘图matplotlib通过pyplot模块提供了一套和MATLAB类似的绘图API,将众多绘图对象所构成的复杂结构隐藏在这套API内 ...
分类:
其他好文 时间:
2017-03-09 15:34:53
阅读次数:
280
2:绘制y=x*x 的图像 3:figure 的认识 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 x=np.linspace(-3,3,50) 5 y1=2*x+1 6 y2=x**2 7 8 plt.figure() #看看 ...
分类:
编程语言 时间:
2017-03-08 18:46:30
阅读次数:
302
SVM 应用实例(人脸识别): from __future__ import print_function from time import time import logging import matplotlib.pyplot as plt from sklearn.cross_validati ...
分类:
其他好文 时间:
2017-03-06 14:56:22
阅读次数:
538
import random import matplotlib import matplotlib.pyplot as plt size=1000 bucket=100 plt.figure() matplotlib.rcParams.update({'font.size': 7}) plt.sub... ...
分类:
其他好文 时间:
2017-03-05 21:00:14
阅读次数:
206
import scipy.misc import matplotlib.pyplot as plt lena = scipy.misc.face() plt.gray() plt.imshow(lena) plt.colorbar() print lena.shape print lena.max(... ...
分类:
其他好文 时间:
2017-03-01 16:26:18
阅读次数:
209
#coding = utf-8import cv2 import numpy as np from pylab import *import matplotlib.pyplot as pltimport pdbframe1 =cv2.imread(r"tes1t.png")# cap = cv2.V ...
分类:
其他好文 时间:
2017-02-27 19:12:16
阅读次数:
260
#coding = utf-8import cv2 import numpy as np from pylab import *import matplotlib.pyplot as pltimport pdbframe1 =cv2.imread(r"sevp_aoc_rdcp_sldas_ebre ...
分类:
其他好文 时间:
2017-02-27 18:47:32
阅读次数:
222
import numpy as np import matplotlib.pyplot as plt def is_outlier(points,threshold=3.5): '''Return a boolen array with True if points are out liers an... ...
分类:
其他好文 时间:
2017-02-26 19:28:53
阅读次数:
177