import numpy as np import pandas as pd from matplotlib import pyplot as plt nasa=pd.read_table(r"Y:\Workplace\BigData\percent-bachelors-degrees-women- ...
分类:
其他好文 时间:
2020-03-08 14:24:12
阅读次数:
81
安装基础库 pip install html5lib pip install pyecharts pip install matplotlib 安装地图库 pip install echarts-countries-pypkgpip install echarts-china-provinces-p ...
分类:
其他好文 时间:
2020-03-07 20:56:30
阅读次数:
93
Contents 以某州的乳腺癌数据集入手:1.K近邻分类&分析KNeighborsClassfier12345678910111213import matplotlib.pyplot as pltimport sklearnimport mglearnfrom sklearn.datasets i... ...
分类:
其他好文 时间:
2020-03-07 13:21:00
阅读次数:
81
```python import matplotlib.pyplot as plt import numpy as np def norm_pdf(x,mu,sigma): pdf=np.exp(-((x-mu)**2)/(2*sigma**2))/(sigma*np.sqrt(2*np.pi)) ... ...
分类:
编程语言 时间:
2020-03-06 19:20:27
阅读次数:
92
一、折线图 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2 * np.pi, 100) y1, y2 = np.sin(x), np.cos(x) plt.plot(x, y1, c='r', ls='- ...
分类:
编程语言 时间:
2020-03-04 22:45:55
阅读次数:
81
matplotlib的使用: step1.创建一个空白的画布,此函数返回fig画布 fig=plt.figure() step2.创建子图 ax=fig.add_subplot(1,2,1)#意思是将画布分为1行2列现在利用第一列返回为第一列的子图 step3.开始画图,此处我们利用seaborn来 ...
分类:
其他好文 时间:
2020-03-04 00:27:04
阅读次数:
83
首先下载项目 https://github.com/aleju/imgaug 然后建立conda独立环境 conda install six numpy scipy Pillow matplotlib scikit-image imageio conda install -c menpo openc ...
分类:
其他好文 时间:
2020-03-02 23:05:53
阅读次数:
373
matplotlib.pyplot库函数关于坐标轴显示的支持 https://blog.csdn.net/Stark_595/article/details/80787005?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source ...
分类:
其他好文 时间:
2020-02-29 22:33:22
阅读次数:
130
matplotlib.pyplot.text(x, y, s, fontdict=None, withdash=<deprecated parameter>, **kwargs)[source] 向坐标轴添加内容,x,y代表添加文字的位置的坐标。 Add text to the axes. Add ...
分类:
其他好文 时间:
2020-02-29 20:54:41
阅读次数:
80
安装numpy,记得是Numpy+mkl的版本,否则后续安装matplotlib会出现问题。 step1: 下载wheel of NumPy build for AMD64 on Windows,在Python Extension Packages for Windows 下载 numpy-1.10 ...
分类:
编程语言 时间:
2020-02-28 19:03:03
阅读次数:
137