码迷,mamicode.com
首页 >  
搜索关键字:matplotlib    ( 2252个结果
CNN for Visual Recognition (assignment1_Q1)
参考:http://cs231n.github.io/assignment1/Q1: k-Nearest Neighbor classifier (30 points) 1 import numpy as np 2 from matplotlib.cbook import todate 3 ...
分类:其他好文   时间:2015-01-13 21:16:36    阅读次数:323
matplotlib curve.py
import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 2*np.pi, 100) sinX = np.sin(x) cosX = np.cos(x) plt.plot(x, sinX) plt.plot(x, co...
分类:其他好文   时间:2015-01-10 23:40:33    阅读次数:193
NLTK
https://pypi.python.org/pypi/setuptools/,下载setuptools。安装成功后,运行下面的指令即可进行相应的安装。easy_install numpyeasy_install scipieasy_install matplotlib可以在:http://www...
分类:其他好文   时间:2015-01-06 00:38:00    阅读次数:408
Matplotlib 教程
Matplotlib 教程 本文为译文,原文载于此,译文原载于此。本文欢迎转载,但请保留本段文字,尊重作者和译者的权益。谢谢。: ) 介绍 Matplotlib 可能是 Python 2D- 绘图领域使用最广泛的套件。它能让使用者很轻松地...
分类:其他好文   时间:2015-01-05 16:57:41    阅读次数:709
python 的 matplotlib画图 画曲线图
#encoding:utf-8 #1.绘制曲线: import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 1000) y = np.sin(x) plt.figure(figsize=(8,4)) plt.plot(x,y,label="$sin(x)$",color="red",linewidth=2)...
分类:编程语言   时间:2015-01-04 17:13:34    阅读次数:616
matplotlib 画图 条形图
#绘制条形图 import numpy as np import matplotlib.pyplot as plt y=[] plt.figure(1) width=1 for i in range(len(y)): plt.figure(1) plt.bar(i*width,y[i],width) plt.xlabel("X") plt.ylabel("Y") plt.show(...
分类:其他好文   时间:2015-01-04 17:13:16    阅读次数:169
matplotlib 画图 散列图
4.绘制散列图 import matplotlib.pyplot as plt import numpy as np import random plt.figure(figsize=(8,4)) x=np.random.random(100) y=np.random.random(100) plt.scatter(x,y,s=x*1000,c=y,marker=(5,1),alpha=0.8,l...
分类:其他好文   时间:2015-01-04 17:11:18    阅读次数:253
matplotlib 画图 三维图
#绘制三维图 import numpy as np import mpl_toolkits.mplot3d import matplotlib.pyplot as plt x,y=np.mgrid[-2:2:20j,-2:2:20j] z=x*np.exp(-x**2-y**2) ax=plt.subplot(111,projection='3d') ax.plot_surface(x,y,z,r...
分类:其他好文   时间:2015-01-04 17:10:27    阅读次数:258
[Scikit-Learn] - introduction
scikit-learn是一个用于机器学习的 Python 模块,建立在SciPy基础之上.主要特点:操作简单、高效的数据挖掘和数据分析无访问限制,在任何情况下可重新使用建立在NumPy、SciPy 和 matplotlib基础上使用商业开源协议——BSD许可证重要链接:官方源代码报告:https:...
分类:其他好文   时间:2015-01-03 14:31:43    阅读次数:157
matplotlib
http://matplotlib.org/downloads.html import matplotlib.pyplot as pltYou need to install it on your system. This basically means putting the zip file w...
分类:其他好文   时间:2015-01-01 08:59:01    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!