码迷,mamicode.com
首页 >  
搜索关键字:pyplot    ( 992个结果
matplotlib之设置极坐标的方向
ax1 是顺时针方向的图 ax2 是逆时针方向的图 set_theta_direction(direction) Set the direction in which theta increases. clockwise, -1: Theta increases in the clockwise d ...
分类:其他好文   时间:2018-05-23 13:46:52    阅读次数:779
matplotlib自动保存图表及使用颜色映射
使用颜色映射 代码如下: import matplotlib.pyplot as plt x_values = list(range(1, 1001)) y_values = [x**2 for x in x_values] # x**2表示求平方 plt.scatter(x_values, y_v ...
分类:其他好文   时间:2018-05-22 14:50:40    阅读次数:485
Python数据处理——绘制函数图形以及数据拟合
1.多项式拟合 import matplotlib.pyplot as pltimport numpy as np#潘海东,2014/1/13 x = np.arange(1, 17, 1)y = np.array([4.00, 6.40, 8.00, 8.80, 9.22, 9.50, 9.70, ...
分类:编程语言   时间:2018-05-21 19:45:42    阅读次数:457
python数据可视化——matplotlib 用户手册入门:pyplot 画图
pyplot画图简单介绍,添加文本,设置线状即颜色,创建多图 ...
分类:编程语言   时间:2018-05-19 18:50:16    阅读次数:324
sklearn训练感知器用iris数据集
简化版代码 解释版+可视化 自己手动注释 ...
分类:其他好文   时间:2018-05-14 21:36:01    阅读次数:1077
一个简单的使用matplotlib作图的例子
1 #使用matplotlib作图 2 import numpy as np 3 import matplotlib.pyplot as plt 4 5 #x = np.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype... ...
分类:其他好文   时间:2018-05-14 18:36:20    阅读次数:147
机器学习之逐次下降法(机器学习算法原理与实践)郑捷
逐次下降法的定义: 下面给出Python实现 # -*- coding: utf-8 -*-import numpy as np from numpy import *from common_libs import *import matplotlib.pyplot as plt #消元发求解方程组 ...
分类:编程语言   时间:2018-05-13 19:52:08    阅读次数:295
cs231n knn
# coding: utf-8 # In[19]: import random import numpy as np from cs231n.data_utils import load_CIFAR10 import matplotlib.pyplot as plt from __future__ ... ...
分类:其他好文   时间:2018-05-12 02:55:17    阅读次数:212
python数据分析画图体验
对于numpy的函数,pands等,不是很熟,我来copy一下code,敲击一下,找找感觉。 默认的导入包import numpy as npimport matplotlib.pyplot as plt 这一个没有写成函数了 copy的文章数据挖掘之matplotlib入门 发现python的代码 ...
分类:编程语言   时间:2018-05-09 10:49:48    阅读次数:260
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more infor
在virtualenv环境下使用matplotlib绘图时遇到了这样的问题: >>> import matplotlib.pyplot as pltTraceback (most recent call last):File "<stdin>", line 1, in <module>...in < ...
分类:编程语言   时间:2018-05-03 22:03:10    阅读次数:513
992条   上一页 1 ... 69 70 71 72 73 ... 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!